Define ASSERT macro.

svn path=/trunk/; revision=11386
This commit is contained in:
Eric Kohl 2004-10-22 20:04:05 +00:00
parent 72aae9d8ca
commit 1e9ad342c8

View file

@ -7,8 +7,10 @@
#ifndef NASSERT
#define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); for(;;);}
#define ASSERT(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); for(;;);}
#else
#define assert(x)
#define ASSERT(x)
#endif
#endif