diff options
author | beber <beber> | 2005-12-10 22:19:52 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-10 22:19:52 +0000 |
commit | bc2de318263e5fc7da07cd1dd6a2b28e87c416ed (patch) | |
tree | bc150e617c1c22d0ce98c8118c3a6ddf0e9c127b /src/espik_debug.h | |
parent | del protection (diff) | |
download | espik-bc2de318263e5fc7da07cd1dd6a2b28e87c416ed.tar.xz |
ident to 80 chars
Diffstat (limited to 'src/espik_debug.h')
-rw-r--r-- | src/espik_debug.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/espik_debug.h b/src/espik_debug.h index 968b948..fed2486 100644 --- a/src/espik_debug.h +++ b/src/espik_debug.h @@ -7,11 +7,12 @@ #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"); \ +#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, ...) \ @@ -22,16 +23,18 @@ #ifdef _ESPIK_DEBUG_ int __indent_level; -#define espik_enter() \ -{ \ - __indent_level++; \ - fprintf (DEBUG_ENTLEV_FILENO, ">(%d)%*c%s +%i @%s\n", __indent_level, __indent_level, ' ', __FILE__, __LINE__, __func__); \ +#define espik_enter() \ +{ \ + __indent_level++; \ + fprintf (DEBUG_ENTLEV_FILENO, ">(%d)%*c%s +%i @%s\n", __indent_level, \ + __indent_level, ' ', __FILE__, __LINE__, __func__); \ } -#define espik_leave() \ -{ \ - fprintf (DEBUG_ENTLEV_FILENO, "<(%d)%*c%s +%i @%s\n", __indent_level, __indent_level, ' ', __FILE__, __LINE__, __func__); \ - __indent_level--; \ +#define espik_leave() \ +{ \ + fprintf (DEBUG_ENTLEV_FILENO, "<(%d)%*c%s +%i @%s\n", __indent_level, \ + __indent_level, ' ', __FILE__, __LINE__, __func__); \ + __indent_level--; \ } #else |