Actually, just make that compliant and use NDEBUG

This commit is contained in:
K. Lange 2018-06-25 21:43:16 +09:00
parent 4e23a22019
commit ff292f6c8d
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#define DEBUG
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -1,4 +1,4 @@
#ifdef DEBUG #ifndef NDEBUG
#define assert(statement) ((statement) ? (void)0 : __assert_func(__FILE__, __LINE__, __FUNCTION__, #statement)) #define assert(statement) ((statement) ? (void)0 : __assert_func(__FILE__, __LINE__, __FUNCTION__, #statement))
#else #else
#define assert(statement) ((void)0) #define assert(statement) ((void)0)