mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
document DBUG_OUTPUT()
misc cleanup dbug/example1.c: cleanup dbug/example2.c: cleanup dbug/example3.c: cleanup dbug/main.c: cleanup dbug/user.r: document DBUG_OUTPUT()
This commit is contained in:
parent
f200533b3e
commit
a55630bd37
5 changed files with 9 additions and 11 deletions
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
main (argc, argv)
|
main (argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char *argv[];
|
char *argv[];
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
int debug = 0;
|
int debug = 0;
|
||||||
|
|
||||||
main (argc, argv)
|
main (argc, argv)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
main (argc, argv)
|
main (argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char *argv[];
|
char *argv[];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <dbug_long.h>
|
#include <dbug.h>
|
||||||
|
|
||||||
int main (argc, argv)
|
int main (argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
|
|
|
@ -873,7 +873,14 @@ disabled by DBUG_OFF togeher with the
|
||||||
.I dbug
|
.I dbug
|
||||||
library. So there will be no need to disable asserts separately with NDEBUG.
|
library. So there will be no need to disable asserts separately with NDEBUG.
|
||||||
.SP 1
|
.SP 1
|
||||||
EX:\ \fCDBUG_ASSERT(\ a\ >\ 0);\fR
|
EX:\ \fCDBUG_ASSERT(\ a\ >\ 0\ );\fR
|
||||||
|
.SP 1
|
||||||
|
.LI DBUG_OUTPUT\
|
||||||
|
In multi-threaded environment disables (or enables) any
|
||||||
|
.I dbug
|
||||||
|
output from the current thread.
|
||||||
|
.SP 1
|
||||||
|
EX:\ \fCDBUG_OUTPUT(\ 0\ );\fR
|
||||||
.SP 1
|
.SP 1
|
||||||
.LE
|
.LE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue