Lines Matching refs:lua_State
29 #define tostate(l) (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))
36 lua_State l;
42 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
61 static void freestack (lua_State *L, lua_State *L1) { in freestack()
70 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen()
84 static void preinit_state (lua_State *L, global_State *g) { in preinit_state()
105 static void close_state (lua_State *L) { in close_state()
119 lua_State *luaE_newthread (lua_State *L) { in luaE_newthread()
120 lua_State *L1 = tostate(luaM_malloc(L, state_size(lua_State))); in luaE_newthread()
134 void luaE_freethread (lua_State *L, lua_State *L1) { in luaE_freethread()
139 luaM_freemem(L, fromstate(L1), state_size(lua_State)); in luaE_freethread()
143 LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { in lua_newstate()
145 lua_State *L; in lua_newstate()
193 static void callallgcTM (lua_State *L, void *ud) { in callallgcTM()
199 LUA_API void lua_close (lua_State *L) { in lua_close()