Lines Matching refs:lua_State

50 typedef struct lua_State lua_State;  typedef
52 typedef int (*lua_CFunction) (lua_State *L);
58 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
60 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
110 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
111 LUA_API void (lua_close) (lua_State *L);
112 LUA_API lua_State *(lua_newthread) (lua_State *L);
114 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
120 LUA_API int (lua_gettop) (lua_State *L);
121 LUA_API void (lua_settop) (lua_State *L, int idx);
122 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
123 LUA_API void (lua_remove) (lua_State *L, int idx);
124 LUA_API void (lua_insert) (lua_State *L, int idx);
125 LUA_API void (lua_replace) (lua_State *L, int idx);
126 LUA_API int (lua_checkstack) (lua_State *L, int sz);
128 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
135 LUA_API int (lua_isnumber) (lua_State *L, int idx);
136 LUA_API int (lua_isstring) (lua_State *L, int idx);
137 LUA_API int (lua_iscfunction) (lua_State *L, int idx);
138 LUA_API int (lua_isuserdata) (lua_State *L, int idx);
139 LUA_API int (lua_type) (lua_State *L, int idx);
140 LUA_API const char *(lua_typename) (lua_State *L, int tp);
142 LUA_API int (lua_equal) (lua_State *L, int idx1, int idx2);
143 LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2);
144 LUA_API int (lua_lessthan) (lua_State *L, int idx1, int idx2);
146 LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx);
147 LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx);
148 LUA_API int (lua_toboolean) (lua_State *L, int idx);
149 LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
150 LUA_API size_t (lua_objlen) (lua_State *L, int idx);
151 LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx);
152 LUA_API void *(lua_touserdata) (lua_State *L, int idx);
153 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
154 LUA_API const void *(lua_topointer) (lua_State *L, int idx);
160 LUA_API void (lua_pushnil) (lua_State *L);
161 LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
162 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
163 LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l);
164 LUA_API void (lua_pushstring) (lua_State *L, const char *s);
165 LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt,
167 LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...);
168 LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n);
169 LUA_API void (lua_pushboolean) (lua_State *L, int b);
170 LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p);
171 LUA_API int (lua_pushthread) (lua_State *L);
177 LUA_API void (lua_gettable) (lua_State *L, int idx);
178 LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k);
179 LUA_API void (lua_rawget) (lua_State *L, int idx);
180 LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n);
181 LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
182 LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
183 LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
184 LUA_API void (lua_getfenv) (lua_State *L, int idx);
190 LUA_API void (lua_settable) (lua_State *L, int idx);
191 LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
192 LUA_API void (lua_rawset) (lua_State *L, int idx);
193 LUA_API void (lua_rawseti) (lua_State *L, int idx, int n);
194 LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
195 LUA_API int (lua_setfenv) (lua_State *L, int idx);
201 LUA_API void (lua_call) (lua_State *L, int nargs, int nresults);
202 LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
203 LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud);
204 LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
207 LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data);
213 LUA_API int (lua_yield) (lua_State *L, int nresults);
214 LUA_API int (lua_resume) (lua_State *L, int narg);
215 LUA_API int (lua_status) (lua_State *L);
230 LUA_API int (lua_gc) (lua_State *L, int what, int data);
237 LUA_API int (lua_error) (lua_State *L);
239 LUA_API int (lua_next) (lua_State *L, int idx);
241 LUA_API void (lua_concat) (lua_State *L, int n);
243 LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
244 LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud);
298 LUA_API void lua_setlevel (lua_State *from, lua_State *to);
330 typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
333 LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar);
334 LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar);
335 LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n);
336 LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n);
337 LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n);
338 LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n);
340 LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count);
341 LUA_API lua_Hook lua_gethook (lua_State *L);
342 LUA_API int lua_gethookmask (lua_State *L);
343 LUA_API int lua_gethookcount (lua_State *L);