summaryrefslogtreecommitdiff
path: root/include/my_dbug.h
diff options
context:
space:
mode:
authorunknown <guilhem@gbichot4.local>2008-02-06 18:23:34 +0100
committerunknown <guilhem@gbichot4.local>2008-02-06 18:23:34 +0100
commit3e9e629c591dacb625cef44f5ec589d654a36b53 (patch)
treeb5a190bd252b2eb412352d0772d466c182c6671f /include/my_dbug.h
parent7223b4edf57fc6aa1d3c3ef3409842b9e8fc7056 (diff)
parent20bbcc359bfa3f0ce938c73ebdd13441f4eca6a5 (diff)
downloadmariadb-git-3e9e629c591dacb625cef44f5ec589d654a36b53.tar.gz
ma_control_file.c:
SCCS merged storage/maria/ma_control_file.c: SCCS merged
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r--include/my_dbug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h
index a284e648f7f..6b197ebf0e1 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -85,6 +85,7 @@ extern void _db_force_flush();
#define DEBUGGER_OFF do { _dbug_on_= 0; } while(0)
#define DEBUGGER_ON do { _dbug_on_= 1; } while(0)
#define IF_DBUG(A) A
+#define DBUG_ABORT() ((void)fflush(DBUG_FILE), abort())
#else /* No debugger */
#define DBUG_ENTER(a1)
@@ -114,6 +115,7 @@ extern void _db_force_flush();
#define DEBUGGER_OFF do { } while(0)
#define DEBUGGER_ON do { } while(0)
#define IF_DBUG(A)
+#define DBUG_ABORT() ((void)(0))
#endif
#ifdef __cplusplus
}