]> www.ginac.de Git - cln.git/blob - src/integer/misc/cl_I_debug.cc
3941aaf774be4a6f705817496453d6c8e07560f3
[cln.git] / src / integer / misc / cl_I_debug.cc
1 // cl_I debugging support.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7
8
9 // Implementation.
10
11 #include "cl_integer.h"
12 #include "cl_io.h"
13 #include "cl_integer_io.h"
14
15 static void dprint (cl_heap* pointer)
16 {
17         var const cl_I& obj = *(const cl_I*)&pointer;
18         fprint(cl_debugout, "(cl_I) ");
19         fprint(cl_debugout, obj);
20 }
21 AT_INITIALIZATION(dprint_I)
22 {
23         cl_register_type_printer(cl_class_fixnum,dprint);
24         cl_register_type_printer(cl_class_bignum,dprint);
25 }
26
27 // This dummy links in this module when <cl_integer.h> requires it.
28 int cl_I_debug_module;