Browse Source

ref: implement ASSERT macro

pull/2/head
mittorn 6 years ago
parent
commit
db78726656
  1. 4
      ref_gl/gl_local.h

4
ref_gl/gl_local.h

@ -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…
Cancel
Save