Changeset 25 in libcf for trunk/include/cf_debug.h
- Timestamp:
- 02/02/13 17:27:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_debug.h
r21 r25 19 19 20 20 #ifdef _DEBUG 21 # define CF_DEBUG_CREATE_CTX() \ 22 CF_Debug_CreateCtx () 23 24 # define CF_DEBUG_DESTROY_CTX(__ctx) \ 25 CF_Debug_DestroyCtx (__ctx) 26 21 27 # define CF_UPDATE_CTX(__ctx) \ 22 28 CF_Debug_UpdateCtx (__ctx,__FILE__,__func__,__LINE__) 29 23 30 # define CF_DEBUG_PRINT(__fp,__fmt,...) \ 24 31 CF_Debug_Print (__fp,__FILE__,__func__,__LINE__,__fmt,##__VA_ARGS__) 32 25 33 # define CF_DEBUG_PRINT_BIN(__fp,__bin,__len,__fmt,...) \ 26 34 CF_Debug_PrintBin (__fp,__FILE__,__func__,__LINE__,__bin,__len,__fmt,##__VA_ARGS__) 35 27 36 # define CF_DEBUG_TRACE(__ctx,__fmt,...) \ 28 37 do { \ … … 30 39 CF_Debug_Trace (__ctx,__fmt,##__VA_ARGS__); \ 31 40 } while (0) 41 32 42 # define CF_DEBUG_TRACE_BIN(__ctx,__bin,__len,__fmt,...) \ 33 43 do { \ … … 35 45 CF_Debug_TraceBin (__ctx,__bin,__len,__fmt,##__VA_ARGS__); \ 36 46 } while (0) 47 37 48 # define CF_DEBUG_CALLSTACK_PUSH(__ctx) \ 38 49 CF_Debug_CallStackPush (__ctx,__FILE__,__func__,__LINE__) 50 39 51 # define CF_DEBUG_CALLSTACK_POP \ 40 52 CF_Debug_CallStackPop 41 53 #else // #ifdef _DEBUG 54 # define CF_DEBUG_CREATE_CTX() NULL 55 # define CF_DEBUG_DESTROY_CTX(__ctx) 42 56 # define CF_UPDATE_CTX(__ctx) 57 # define CF_DEBUG_PRINT(__fp,__fmt,...) 58 # define CF_DEBUG_PRINT_BIN(__fp,__bin,__len,__fmt,...) 43 59 # define CF_DEBUG_TRACE(__ctx,__fmt,...) 44 60 # define CF_DEBUG_TRACE_BIN(__ctx,__bin,__len,__fmt,...) 45 61 # define CF_DEBUG_CALLSTACK_PUSH(__ctx) 46 # define CF_DEBUG_CALLSTACK_POP( )62 # define CF_DEBUG_CALLSTACK_POP(__ctx,__callstack) 1 47 63 #endif // #ifdef _DEBUG 48 64
Note:
See TracChangeset
for help on using the changeset viewer.