Actually, just make that compliant and use NDEBUG
This commit is contained in:
parent
4e23a22019
commit
ff292f6c8d
|
@ -1,4 +1,3 @@
|
|||
#define DEBUG
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifdef DEBUG
|
||||
#ifndef NDEBUG
|
||||
#define assert(statement) ((statement) ? (void)0 : __assert_func(__FILE__, __LINE__, __FUNCTION__, #statement))
|
||||
#else
|
||||
#define assert(statement) ((void)0)
|
||||
|
|
Loading…
Reference in New Issue