diff options
author | unknown <serg@serg.mylan> | 2004-11-04 22:29:00 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-11-04 22:29:00 +0100 |
commit | 7b72401c5f469028b374a69783dd8fc5bbf84966 (patch) | |
tree | dd3f43e4363d187e0227964fdda2406de51190d0 /include | |
parent | 1ce11fe0416512f9a9a4133cd7feaf2c68a483d8 (diff) | |
download | mariadb-git-7b72401c5f469028b374a69783dd8fc5bbf84966.tar.gz |
dbug: DBUG_EXECUTE_IF macro, build user manual automatically, document all features
charset2html moved from mysys to extra
ignore: new files added, garbage removed
extra/charset2html.c:
Rename: mysys/charset2html.c -> extra/charset2html.c
configure.in:
remove historical difference between test_thr_alarm, test_thr_lock and
six newer mysys/test_* programs
build dbug after mysys
dbug/Makefile.am:
build utils and examples, build manual
dbug/dbug.c:
cleanup
DBUG_EXECUTE_IF macro
dbug/dbug_analyze.c:
fix it to run
dbug/dbug_long.h:
warning added
dbug/main.c:
fix it to run
dbug/user.r:
formating cleanup
all undocumented features documented
extra/Makefile.am:
charset2html moved from mysys
include/my_dbug.h:
DBUG_EXECUTE_IF() macro
mysys/Makefile.am:
charset2html moved to extra
BitKeeper/etc/ignore:
new files added, garbage removed
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dbug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index 9174a8b1ef9..4dd795cf4c0 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -25,6 +25,7 @@ extern int _db_on_,_no_db_; extern FILE *_db_fp_; extern char *_db_process_; extern int _db_keyword_(const char *keyword); +extern int _db_strict_keyword_(const char *keyword); extern void _db_setjmp_(void); extern void _db_longjmp_(void); extern void _db_push_(const char *control); @@ -67,12 +68,15 @@ extern void _db_unlock_file(); #define DBUG_LOCK_FILE { _db_lock_file(); } #define DBUG_UNLOCK_FILE { _db_unlock_file(); } #define DBUG_ASSERT(A) assert(A) +#define DBUG_EXECUTE_IF(keyword,a1) \ + {if (_db_on_) {if (_db_strict_keyword_ (keyword)) { a1 }}} #else /* No debugger */ #define DBUG_ENTER(a1) #define DBUG_RETURN(a1) return(a1) #define DBUG_VOID_RETURN return #define DBUG_EXECUTE(keyword,a1) {} +#define DBUG_EXECUTE_IF(keyword,a1) {} #define DBUG_PRINT(keyword,arglist) {} #define DBUG_PUSH(a1) {} #define DBUG_POP() {} |