9 #include "engines/grim/lua/lua.h" 14 #include "engines/grim/lua/lauxlib.h" 15 #define LUA_INTERNALERROR(s) luaL_verror("INTERNAL ERROR - %s [%s:%d]", (s), __FILE__, __LINE__) 16 #define LUA_ASSERT(c, s) { if (!(c)) LUA_INTERNALERROR(s); } 18 #define LUA_INTERNALERROR(s) // empty 19 #define LUA_ASSERT(c, s) // empty 22 #define MAX_INT (2147483647 - 2) // maximum value of an int (-2 for safety) 23 #define MAX_WORD (65534U) 109 #define ttype(o) ((o)->ttype) 110 #define nvalue(o) ((o)->value.n) 111 #define svalue(o) ((o)->value.ts->str) 112 #define tsvalue(o) ((o)->value.ts) 113 #define clvalue(o) ((o)->value.cl) 114 #define avalue(o) ((o)->value.a) 115 #define fvalue(o) ((o)->value.f) 116 #define tfvalue(o) ((o)->value.tf) 117 #define protovalue(o) ((o)->value.cl->consts) 141 extern const char *luaO_typenames[];
145 int32 luaO_redimension(int32 oldsize);
146 int luaO_findstring(
const char *name,
const char *list[]);
149 #define luaO_memup(d, s, n) memmove(d, s, n) 150 #define luaO_memdown(d, s, n) memmove(d, s, n)
Definition: lobject.h:122
Definition: lobject.h:103
Definition: lobject.h:133
Definition: lobject.h:128