summaryrefslogtreecommitdiff
path: root/include/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/debug.h b/include/debug.h
index 5b780bc..4588aca 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -1,10 +1,16 @@
#ifndef _DEBUG_H_
#define _DEBUG_H_
+
#ifdef DEBUGGING
-# define DEBUG(...) fprintf (stderr, __VA_ARGS__)
+# include <stdio.h>
+# define DEBUGPATH "debug.txt"
+# define DEBUG(...) FILE *__f491 = fopen(DEBUGPATH, "a"); \
+ fprintf (__f491, __VA_ARGS__); \
+ fclose(__f491);
#else
# define DEBUG(...)
#endif
+
#endif