blob: a14900a604146fa7aa02754a10f7940577b90da4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _DEBUG_H_
#define _DEBUG_H_
#ifdef DEBUGGING
# include <stdio.h>
# define DEBUGPATH "debug.txt"
FILE *__debug_handle__;
# define DEBUG(...) __debug_handle__ = fopen(DEBUGPATH, "a"); \
fprintf (__debug_handle__, __VA_ARGS__); \
fclose(__debug_handle__);
#else
# define DEBUG(...)
#endif
#endif
|