Przeglądaj źródła

Added an sq_assert macro like the lua_assert in Lua.

mingodad 13 lat temu
rodzic
commit
f2eaed27b2
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      include/squirrel.h

+ 4 - 0
include/squirrel.h

@@ -321,6 +321,10 @@ typedef struct tagSQFunctionInfo {
 	const SQChar *source;
 }SQFunctionInfo;
 
+#if !defined(sq_assert)
+#define sq_assert(x)	((void)0)
+#endif
+
 /*vm*/
 SQUIRREL_API HSQUIRRELVM sq_open(SQInteger initialstacksize);
 SQUIRREL_API HSQUIRRELVM sq_newthread(HSQUIRRELVM friendvm, SQInteger initialstacksize);