Changeset 55 in libcf for trunk/src/cf_debug.c
- Timestamp:
- 04/06/13 21:44:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_debug.c
r53 r55 22 22 #define IS_READABLE_CHAR(__c) (' ' <= __c && __c <= '~') 23 23 24 #define CHECK_INVALID_CTX(__ctx)\24 #define ASSERT_CTX(__ctx) \ 25 25 if (__ctx == NULL) \ 26 26 return CF_ERROR_DEBUG_INVALID_CTX … … 82 82 CF_DEBUG_CTX * context = (CF_DEBUG_CTX *) ctx; 83 83 84 CHECK_INVALID_CTX (ctx);84 ASSERT_CTX (ctx); 85 85 86 86 strncpy (context->file, file, strlen (file)); … … 156 156 CF_DEBUG_CALLSTACK * next = NULL; 157 157 158 CHECK_INVALID_CTX (ctx);158 ASSERT_CTX (ctx); 159 159 160 160 if (context->fp != NULL) … … 297 297 CF_DEBUG_CALLSTACK * push = NULL; 298 298 299 CHECK_INVALID_CTX (ctx);299 ASSERT_CTX (ctx); 300 300 301 301 push = (CF_DEBUG_CALLSTACK *) calloc (sizeof (CF_DEBUG_CALLSTACK), 1); … … 366 366 CF_DEBUG_CALLSTACK * pop = NULL; 367 367 368 CHECK_INVALID_CTX (ctx);368 ASSERT_CTX (ctx); 369 369 370 370 pop = context->callstack.caller;
Note:
See TracChangeset
for help on using the changeset viewer.