- make sure to define NDEBUG in my_dbug.h, when DBUG_OFF is defined
(to disable assertions) include/my_dbug.h: - make sure to define NDEBUG, when DBUG_OFF is defined (to disable assertions)
This commit is contained in:
parent
fa4b3f0fcc
commit
ee7bc435e3
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#ifndef _dbug_h
|
#ifndef _dbug_h
|
||||||
#define _dbug_h
|
#define _dbug_h
|
||||||
|
#ifdef DBUG_OFF
|
||||||
|
#define NDEBUG /* for assert.h */
|
||||||
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user