Lines Matching refs:lua_State

57 typedef struct lua_State lua_State;  typedef
106 typedef int (*lua_CFunction) (lua_State *L);
111 typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx);
117 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
119 typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
143 typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
163 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
164 LUA_API void (lua_close) (lua_State *L);
165 LUA_API lua_State *(lua_newthread) (lua_State *L);
166 LUA_API int (lua_closethread) (lua_State *L, lua_State *from);
167 LUA_API int (lua_resetthread) (lua_State *L); /* Deprecated! */
169 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
172 LUA_API lua_Number (lua_version) (lua_State *L);
178 LUA_API int (lua_absindex) (lua_State *L, int idx);
179 LUA_API int (lua_gettop) (lua_State *L);
180 LUA_API void (lua_settop) (lua_State *L, int idx);
181 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
182 LUA_API void (lua_rotate) (lua_State *L, int idx, int n);
183 LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx);
184 LUA_API int (lua_checkstack) (lua_State *L, int n);
186 LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
193 LUA_API int (lua_isnumber) (lua_State *L, int idx);
194 LUA_API int (lua_isstring) (lua_State *L, int idx);
195 LUA_API int (lua_iscfunction) (lua_State *L, int idx);
196 LUA_API int (lua_isinteger) (lua_State *L, int idx);
197 LUA_API int (lua_isuserdata) (lua_State *L, int idx);
198 LUA_API int (lua_type) (lua_State *L, int idx);
199 LUA_API const char *(lua_typename) (lua_State *L, int tp);
201 LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum);
202 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum);
203 LUA_API int (lua_toboolean) (lua_State *L, int idx);
204 LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
205 LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx);
206 LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx);
207 LUA_API void *(lua_touserdata) (lua_State *L, int idx);
208 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
209 LUA_API const void *(lua_topointer) (lua_State *L, int idx);
231 LUA_API void (lua_arith) (lua_State *L, int op);
237 LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2);
238 LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op);
244 LUA_API void (lua_pushnil) (lua_State *L);
245 LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
246 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
247 LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
248 LUA_API const char *(lua_pushstring) (lua_State *L, const char *s);
249 LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt,
251 LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...);
252 LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n);
253 LUA_API void (lua_pushboolean) (lua_State *L, int b);
254 LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p);
255 LUA_API int (lua_pushthread) (lua_State *L);
261 LUA_API int (lua_getglobal) (lua_State *L, const char *name);
262 LUA_API int (lua_gettable) (lua_State *L, int idx);
263 LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k);
264 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n);
265 LUA_API int (lua_rawget) (lua_State *L, int idx);
266 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n);
267 LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p);
269 LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
270 LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue);
271 LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
272 LUA_API int (lua_getiuservalue) (lua_State *L, int idx, int n);
278 LUA_API void (lua_setglobal) (lua_State *L, const char *name);
279 LUA_API void (lua_settable) (lua_State *L, int idx);
280 LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
281 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n);
282 LUA_API void (lua_rawset) (lua_State *L, int idx);
283 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n);
284 LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p);
285 LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
286 LUA_API int (lua_setiuservalue) (lua_State *L, int idx, int n);
292 LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults,
296 LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
300 LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
303 LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
309 LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx,
311 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg,
313 LUA_API int (lua_status) (lua_State *L);
314 LUA_API int (lua_isyieldable) (lua_State *L);
322 LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud);
323 LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont);
342 LUA_API int (lua_gc) (lua_State *L, int what, ...);
349 LUA_API int (lua_error) (lua_State *L);
351 LUA_API int (lua_next) (lua_State *L, int idx);
353 LUA_API void (lua_concat) (lua_State *L, int n);
354 LUA_API void (lua_len) (lua_State *L, int idx);
356 LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
358 LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
359 LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
361 LUA_API void (lua_toclose) (lua_State *L, int idx);
362 LUA_API void (lua_closeslot) (lua_State *L, int idx);
457 LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar);
458 LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar);
459 LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n);
460 LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n);
461 LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n);
462 LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n);
464 LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n);
465 LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1,
468 LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count);
469 LUA_API lua_Hook (lua_gethook) (lua_State *L);
470 LUA_API int (lua_gethookmask) (lua_State *L);
471 LUA_API int (lua_gethookcount) (lua_State *L);
473 LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit);