1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00
include/my_dbug.h:
  formatting
This commit is contained in:
unknown
2008-01-07 22:19:21 +01:00
parent 3c44bca60b
commit 0bbccfde34
2 changed files with 10 additions and 11 deletions

View File

@ -951,7 +951,6 @@ void _db_enter_(const char *_func_, const char *_file_,
*_slevel_= 0; /* Set to avoid valgrind warnings if dbug is enabled later */ *_slevel_= 0; /* Set to avoid valgrind warnings if dbug is enabled later */
return; return;
} }
get_code_state_or_return;
save_errno= errno; save_errno= errno;
*_sfunc_= cs->func; *_sfunc_= cs->func;

View File

@ -81,8 +81,8 @@ extern FILE *_db_fp_(void);
#define DBUG_ASSERT(A) assert(A) #define DBUG_ASSERT(A) assert(A)
#define DBUG_EXPLAIN(buf,len) _db_explain_(0, (buf),(len)) #define DBUG_EXPLAIN(buf,len) _db_explain_(0, (buf),(len))
#define DBUG_EXPLAIN_INITIAL(buf,len) _db_explain_init_((buf),(len)) #define DBUG_EXPLAIN_INITIAL(buf,len) _db_explain_init_((buf),(len))
#define DEBUGGER_OFF _dbug_on_= 0 #define DEBUGGER_OFF do { _dbug_on_= 0; } while(0)
#define DEBUGGER_ON _dbug_on_= 1 #define DEBUGGER_ON do { _dbug_on_= 1; } while(0)
#define IF_DBUG(A) A #define IF_DBUG(A) A
#else /* No debugger */ #else /* No debugger */
@ -107,11 +107,11 @@ extern FILE *_db_fp_(void);
#define DBUG_ASSERT(A) do { } while(0) #define DBUG_ASSERT(A) do { } while(0)
#define DBUG_LOCK_FILE #define DBUG_LOCK_FILE
#define DBUG_FILE (stderr) #define DBUG_FILE (stderr)
#define DEBUGGER_OFF
#define DEBUGGER_ON
#define DBUG_UNLOCK_FILE #define DBUG_UNLOCK_FILE
#define DBUG_EXPLAIN(buf,len) #define DBUG_EXPLAIN(buf,len)
#define DBUG_EXPLAIN_INITIAL(buf,len) #define DBUG_EXPLAIN_INITIAL(buf,len)
#define DEBUGGER_OFF do { } while(0)
#define DEBUGGER_ON do { } while(0)
#define IF_DBUG(A) #define IF_DBUG(A)
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus