ref: implement ASSERT macro

This commit is contained in:
mittorn 2019-03-16 17:23:41 +07:00
parent 57320c0c25
commit db78726656
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ GNU General Public License for more details.
#include "cvar.h"
#define offsetof(s,m) (size_t)&(((s *)0)->m)
#define ASSERT(x)
#define Assert(x)
#define ASSERT(x) if(!( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
#define Assert(x) if(!( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
#include <stdio.h>