memcached.h | memcached.h | |||
---|---|---|---|---|
skipping to change at line 434 | skipping to change at line 434 | |||
/* Some personal debugging functions */ | /* Some personal debugging functions */ | |||
#ifdef HAVE_DEBUG | #ifdef HAVE_DEBUG | |||
#define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, _ _LINE__,__func__);fflush(stdout); | #define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, _ _LINE__,__func__);fflush(stdout); | |||
#ifdef __MEMCACHED_H__ | #ifdef __MEMCACHED_H__ | |||
#define WATCHPOINT_ERROR(A) fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FI LE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout); | #define WATCHPOINT_ERROR(A) fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FI LE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout); | |||
#define WATCHPOINT_IFERROR(A) if(A != MEMCACHED_SUCCESS)fprintf(stderr, "\n WATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));ff lush(stdout); | #define WATCHPOINT_IFERROR(A) if(A != MEMCACHED_SUCCESS)fprintf(stderr, "\n WATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));ff lush(stdout); | |||
#endif | #endif | |||
#define WATCHPOINT_STRING(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n" , __FILE__, __LINE__,__func__,A);fflush(stdout); | #define WATCHPOINT_STRING(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n" , __FILE__, __LINE__,__func__,A);fflush(stdout); | |||
#define WATCHPOINT_STRING_LENGTH(A,B) fprintf(stderr, "\nWATCHPOINT %s:%d ( %s) %.*s\n", __FILE__, __LINE__,__func__,(int)B,A);fflush(stdout); | #define WATCHPOINT_STRING_LENGTH(A,B) fprintf(stderr, "\nWATCHPOINT %s:%d ( %s) %.*s\n", __FILE__, __LINE__,__func__,(int)B,A);fflush(stdout); | |||
#define WATCHPOINT_NUMBER(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %zu\n ", __FILE__, __LINE__,__func__,(size_t)(A));fflush(stdout); | #define WATCHPOINT_NUMBER(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %zu\n ", __FILE__, __LINE__,__func__,(size_t)(A));fflush(stdout); | |||
#define WATCHPOINT_ERRNO(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__, strerror(A));A= 0;fflush(stdout); | #define WATCHPOINT_ERRNO(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__, strerror(A));fflush(stdout); | |||
#define WATCHPOINT_ASSERT(A) assert((A)); | #define WATCHPOINT_ASSERT(A) assert((A)); | |||
#else | #else | |||
#define WATCHPOINT | #define WATCHPOINT | |||
#ifdef __MEMCACHED_H__ | #ifdef __MEMCACHED_H__ | |||
#define WATCHPOINT_ERROR(A) | #define WATCHPOINT_ERROR(A) | |||
#define WATCHPOINT_IFERROR(A) | #define WATCHPOINT_IFERROR(A) | |||
#endif | #endif | |||
#define WATCHPOINT_STRING(A) | #define WATCHPOINT_STRING(A) | |||
#define WATCHPOINT_NUMBER(A) | #define WATCHPOINT_NUMBER(A) | |||
#define WATCHPOINT_ERRNO(A) | #define WATCHPOINT_ERRNO(A) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||