]> www.ginac.de Git - cln.git/blob - src/complex/misc/cl_C_debug.cc
- Compatibility was not really broken, so: C=0, R=1, A=0.
[cln.git] / src / complex / misc / cl_C_debug.cc
1 // cl_C debugging support.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7
8
9 // Implementation.
10
11 #include "cl_complex.h"
12 #include "cl_io.h"
13 #include "cl_complex_io.h"
14
15 static void dprint (cl_heap* pointer)
16 {
17         var const cl_N& obj = *(const cl_N*)&pointer;
18         fprint(cl_debugout, "(cl_N) ");
19         fprint(cl_debugout, obj);
20 }
21 AT_INITIALIZATION(dprint_N)
22 { cl_register_type_printer(cl_class_complex,dprint); }
23
24 // This dummy links in this module when <cl_complex.h> requires it.
25 int cl_C_debug_module;
26
27 extern int cl_R_debug_module;
28 static void* dummy[] = { &dummy,
29         &cl_R_debug_module
30 };