summaryrefslogtreecommitdiff
path: root/include/debug.h
blob: 4588acac68e0cdcd0d146f58956f6b5bbc41dc4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _DEBUG_H_
#define _DEBUG_H_


#ifdef DEBUGGING
#  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