projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
oops! Now I'm using the malloc api, rather than direct malloc
[awesomized/libmemcached]
/
libmemcached
/
memcached_watchpoint.h
diff --git
a/libmemcached/memcached_watchpoint.h
b/libmemcached/memcached_watchpoint.h
index d61aadfd8335223d403642a75416874f70bcfbe1..ab479f17fe50a1bd7311adf3fce93f446dd2dba9 100644
(file)
--- a/
libmemcached/memcached_watchpoint.h
+++ b/
libmemcached/memcached_watchpoint.h
@@
-14,8
+14,7
@@
extern "C" {
#endif
/* Some personal debugging functions */
#endif
/* Some personal debugging functions */
-#ifdef MEMCACHED_INTERNAL
-#ifdef HAVE_DEBUG
+#if defined(MEMCACHED_INTERNAL) && defined(DEBUG)
#include <assert.h>
#define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout);
#include <assert.h>
#define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout);
@@
-36,8
+35,8
@@
extern "C" {
#define WATCHPOINT_ERRNO(A)
#define WATCHPOINT_ASSERT_PRINT(A,B,C)
#define WATCHPOINT_ASSERT(A)
#define WATCHPOINT_ERRNO(A)
#define WATCHPOINT_ASSERT_PRINT(A,B,C)
#define WATCHPOINT_ASSERT(A)
-#endif
-#endif /* MEMCACHED_INTERNAL */
+
+#endif /* MEMCACHED_INTERNAL
&& DEBUG
*/
#ifdef __cplusplus
}
#ifdef __cplusplus
}