1 // cl_modint_ring debugging support.
11 #include "cln/modinteger.h"
13 #include "cln/integer_io.h"
17 static void dprint (cl_heap* pointer)
19 var const cl_modint_ring& obj = *(const cl_modint_ring*)&pointer;
20 fprint(cl_debugout, "(cl_modint_ring) Z mod ");
21 fprint(cl_debugout, obj->modulus);
23 AT_INITIALIZATION(dprint_modint_ring)
24 { cl_register_type_printer(cl_class_modint_ring,dprint); }
26 void cl_MI::debug_print () const
28 fprint(cl_debugout, *this);
29 fprint(cl_debugout, "\n");
32 // This dummy links in this module when <cln/modinteger.h> requires it.
33 int cl_MI_debug_module;