mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:13:13 -06:00
9 lines
211 B
C
9 lines
211 B
C
#ifndef NDEBUG
|
|
#ifndef stderr
|
|
#include <stdio.h>
|
|
#endif
|
|
#define assert(x) if (!(x)) {fprintf(stderr,"Assertion failed: x, file %s, line %d\n",__FILE__,__LINE__); exit(1);}
|
|
#else
|
|
#define assert(x)
|
|
#endif
|