| watchpoint.h | | watchpoint.h | |
| | | | |
| skipping to change at line 53 | | skipping to change at line 53 | |
| #endif // __stack_dump() | | #endif // __stack_dump() | |
| | | | |
| #include <assert.h> | | #include <assert.h> | |
| | | | |
| #define WATCHPOINT do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE
__, __LINE__,__func__);fflush(stdout); } while (0) | | #define WATCHPOINT do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE
__, __LINE__,__func__);fflush(stdout); } while (0) | |
| #define WATCHPOINT_ERROR(A) do {fprintf(stderr, "\nWATCHPOINT %s:%d %s\n",
__FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout); } while (0
) | | #define WATCHPOINT_ERROR(A) do {fprintf(stderr, "\nWATCHPOINT %s:%d %s\n",
__FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout); } while (0
) | |
| #define WATCHPOINT_IFERROR(A) do { if(A != MEMCACHED_SUCCESS)fprintf(stderr
, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A
));fflush(stdout); } while (0) | | #define WATCHPOINT_IFERROR(A) do { if(A != MEMCACHED_SUCCESS)fprintf(stderr
, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A
));fflush(stdout); } while (0) | |
| #define WATCHPOINT_STRING(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)
%s\n", __FILE__, __LINE__,__func__,A);fflush(stdout); } while (0) | | #define WATCHPOINT_STRING(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)
%s\n", __FILE__, __LINE__,__func__,A);fflush(stdout); } while (0) | |
| #define WATCHPOINT_STRING_LENGTH(A,B) do { fprintf(stderr, "\nWATCHPOINT %s
:%d (%s) %.*s\n", __FILE__, __LINE__,__func__,(int)B,A);fflush(stdout); } w
hile (0) | | #define WATCHPOINT_STRING_LENGTH(A,B) do { fprintf(stderr, "\nWATCHPOINT %s
:%d (%s) %.*s\n", __FILE__, __LINE__,__func__,(int)B,A);fflush(stdout); } w
hile (0) | |
| #define WATCHPOINT_NUMBER(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)
%zu\n", __FILE__, __LINE__,__func__,(size_t)(A));fflush(stdout); } while (0
) | | #define WATCHPOINT_NUMBER(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s)
%zu\n", __FILE__, __LINE__,__func__,(size_t)(A));fflush(stdout); } while (0
) | |
|
| | | #define WATCHPOINT_LABELED_NUMBER(A,B) do { fprintf(stderr, "\nWATCHPOINT % | |
| | | s:%d (%s) %s:%zu\n", __FILE__, __LINE__,__func__,(A),(size_t)(B));fflush(st | |
| | | dout); } while (0) | |
| | | #define WATCHPOINT_IF_LABELED_NUMBER(A,B,C) do { if(A) {fprintf(stderr, "\n | |
| | | WATCHPOINT %s:%d (%s) %s:%zu\n", __FILE__, __LINE__,__func__,(B),(size_t)(C | |
| | | ));fflush(stdout);} } while (0) | |
| #define WATCHPOINT_ERRNO(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %
s\n", __FILE__, __LINE__,__func__, strerror(A));fflush(stdout); } while (0) | | #define WATCHPOINT_ERRNO(A) do { fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %
s\n", __FILE__, __LINE__,__func__, strerror(A));fflush(stdout); } while (0) | |
| #define WATCHPOINT_ASSERT_PRINT(A,B,C) do { if(!(A)){fprintf(stderr, "\nWAT
CHPOINT ASSERT %s:%d (%s) ", __FILE__, __LINE__,__func__);fprintf(stderr, (
B),(C));fprintf(stderr,"\n");fflush(stdout); __stack_dump(); } assert((A));
} while (0) | | #define WATCHPOINT_ASSERT_PRINT(A,B,C) do { if(!(A)){fprintf(stderr, "\nWAT
CHPOINT ASSERT %s:%d (%s) ", __FILE__, __LINE__,__func__);fprintf(stderr, (
B),(C));fprintf(stderr,"\n");fflush(stdout); __stack_dump(); } assert((A));
} while (0) | |
| #define WATCHPOINT_ASSERT(A) do { if (! (A)) {__stack_dump();} assert((A));
} while (0) | | #define WATCHPOINT_ASSERT(A) do { if (! (A)) {__stack_dump();} assert((A));
} while (0) | |
| #define WATCHPOINT_ASSERT_INITIALIZED(A) do { if (! (A)) { __stack_dump();
} assert(memcached_is_initialized((A))); } while (0); | | #define WATCHPOINT_ASSERT_INITIALIZED(A) do { if (! (A)) { __stack_dump();
} assert(memcached_is_initialized((A))); } while (0); | |
| #define WATCHPOINT_SET(A) do { A; } while(0); | | #define WATCHPOINT_SET(A) do { A; } while(0); | |
| | | | |
| #else | | #else | |
| | | | |
| #define WATCHPOINT | | #define WATCHPOINT | |
| #define WATCHPOINT_ERROR(A) | | #define WATCHPOINT_ERROR(A) | |
| #define WATCHPOINT_IFERROR(A) | | #define WATCHPOINT_IFERROR(A) | |
| #define WATCHPOINT_STRING(A) | | #define WATCHPOINT_STRING(A) | |
| #define WATCHPOINT_NUMBER(A) | | #define WATCHPOINT_NUMBER(A) | |
|
| | | #define WATCHPOINT_LABELED_NUMBER(A,B) | |
| | | #define WATCHPOINT_IF_LABELED_NUMBER(A,B,C) | |
| #define WATCHPOINT_ERRNO(A) | | #define WATCHPOINT_ERRNO(A) | |
| #define WATCHPOINT_ASSERT_PRINT(A,B,C) | | #define WATCHPOINT_ASSERT_PRINT(A,B,C) | |
| #define WATCHPOINT_ASSERT(A) | | #define WATCHPOINT_ASSERT(A) | |
| #define WATCHPOINT_ASSERT_INITIALIZED(A) | | #define WATCHPOINT_ASSERT_INITIALIZED(A) | |
| #define WATCHPOINT_SET(A) | | #define WATCHPOINT_SET(A) | |
| | | | |
| #endif /* DEBUG */ | | #endif /* DEBUG */ | |
| | | | |
| #endif /* __LIBMEMCACHED_WATCHPOINT_H__ */ | | #endif /* __LIBMEMCACHED_WATCHPOINT_H__ */ | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 8 lines changed or added | |
|