]> www.ginac.de Git - cln.git/blob - src/base/cl_debugout.cc
ad5a5c2cadd72f95e775a324cc9d548a8265954a
[cln.git] / src / base / cl_debugout.cc
1 // Debugging stream.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_io.h"
8
9
10 // Implementation.
11
12 // Just assume that the debugger runs on /dev/tty, independently of
13 // cl_stdin, cl_stdout, cl_stderr.
14
15 #if defined(CL_IO_STDIO)
16
17 FILE* cl_debugout = fopen("/dev/tty","a");
18
19 #endif
20
21 #if defined(CL_IO_IOSTREAM)
22
23 #include <fstream.h>
24
25 ostream* cl_debugout_stream = new ofstream ("/dev/tty");
26
27 #endif