diff options
author | Bertrand Jacquin (Beber) <beber.mailing@gmail.com> | 2006-04-10 20:20:28 +0200 |
---|---|---|
committer | beber <beber@meathook.melee> | 2006-04-10 20:20:28 +0200 |
commit | 8154279a91453985b4c67cd082249a0f7148f1e9 (patch) | |
tree | 6a9d617de70abd69502fa2bffe61c6ea5efc4ae3 /src/espik_debug.h | |
parent | improve configure.in and delete m4 macros (diff) | |
download | espik-8154279a91453985b4c67cd082249a0f7148f1e9.tar.xz |
remove all old debugging code
Diffstat (limited to 'src/espik_debug.h')
-rw-r--r-- | src/espik_debug.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/espik_debug.h b/src/espik_debug.h deleted file mode 100644 index e1c058b..0000000 --- a/src/espik_debug.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ESPIK_DEBUG_H -#define ESPIK_DEBUG_H - -#include "espik_global.h" - -#define DEBUG_PRINT_FILENO stdout -#define DEBUG_ENTLEV_FILENO stderr - - -#if defined (_ESPIK_DEBUG_) && defined (__GNUC__) -#define espik_debug_print(fmt, ...) \ -{ \ - fprintf (DEBUG_PRINT_FILENO, "%s +%i @%s: '", __FILE__, __LINE__, \ - __func__); \ - fprintf (DEBUG_PRINT_FILENO, fmt, ##__VA_ARGS__); \ - fprintf (DEBUG_PRINT_FILENO, "'\n"); \ -} -#else -#define espik_debug_print(fmt, ...) \ -{ \ -} -#endif /* _ESPIK_DEBUG_ && __GNUC__ */ - -#ifdef _ESPIK_DEBUG_ -int __indent_level; - -#define espik_enter() \ -{ \ - __indent_level++; \ - fprintf (DEBUG_ENTLEV_FILENO, ">%*c%s +%i @%s\n", __indent_level, ' ', \ - __FILE__, __LINE__, __func__); \ -} -//#define espik_enter() {} - -#define espik_leave() \ -{ \ - fprintf (DEBUG_ENTLEV_FILENO, "<%*c%s +%i @%s\n", __indent_level, ' ', \ - __FILE__, __LINE__, __func__); \ - __indent_level--; \ -} -//#define espik_leave() {} - -#else - -#define espik_enter() \ -{ \ -} - -#define espik_leave() \ -{ \ -} - -#endif /* _ESPIK_DEBUG_ */ - -#if 0 -inline void espik_bt (void); -void espik_debug_init(); -void kill_me (short num); -#endif - -#endif /* ESPIK_DEBUG_H */ |