]> www.ginac.de Git - cln.git/blob - src/float/sfloat/misc/cl_SF_debug.cc
* include/cln/number.h (As): Fix it in namespace by suffixing `_As'
[cln.git] / src / float / sfloat / misc / cl_SF_debug.cc
1 // cl_SF debugging support.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7
8
9 // Implementation.
10
11 #include "cln/sfloat.h"
12 #include "cln/io.h"
13 #include "cln/float_io.h"
14
15 namespace cln {
16
17 static void dprint (cl_heap* pointer)
18 {
19         var const cl_SF& obj = *(const cl_SF*)&pointer;
20         fprint(cl_debugout, "(cl_SF) ");
21         fprint(cl_debugout, obj);
22 }
23 AT_INITIALIZATION(dprint_SF)
24 { cl_register_type_printer(cl_class_sfloat,dprint); }
25
26 // This dummy links in this module when <cln/sfloat.h> requires it.
27 int cl_SF_debug_module;
28
29 }  // namespace cln