You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
424 B

25 years ago
  1. // Debugging stream.
  2. // General includes.
  3. #include "cl_sysdep.h"
  4. // Specification.
  5. #include "cl_io.h"
  6. // Implementation.
  7. // Just assume that the debugger runs on /dev/tty, independently of
  8. // cl_stdin, cl_stdout, cl_stderr.
  9. #if defined(CL_IO_STDIO)
  10. FILE* cl_debugout = fopen("/dev/tty","a");
  11. #endif
  12. #if defined(CL_IO_IOSTREAM)
  13. #include <fstream.h>
  14. ostream* cl_debugout_stream = new ofstream ("/dev/tty");
  15. #endif