ref: implement ASSERT macro
This commit is contained in:
parent
57320c0c25
commit
db78726656
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ GNU General Public License for more details.
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
#define offsetof(s,m) (size_t)&(((s *)0)->m)
|
#define offsetof(s,m) (size_t)&(((s *)0)->m)
|
||||||
|
|
||||||
#define ASSERT(x)
|
#define ASSERT(x) if(!( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
|
||||||
#define Assert(x)
|
#define Assert(x) if(!( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue