Lines Matching refs:L

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);
154 LUA_API void (lua_close) (lua_State *L);
155 LUA_API lua_State *(lua_newthread) (lua_State *L);
156 LUA_API int (lua_resetthread) (lua_State *L);
158 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
161 LUA_API lua_Number (lua_version) (lua_State *L);
167 LUA_API int (lua_absindex) (lua_State *L, int idx);
168 LUA_API int (lua_gettop) (lua_State *L);
169 LUA_API void (lua_settop) (lua_State *L, int idx);
170 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
171 LUA_API void (lua_rotate) (lua_State *L, int idx, int n);
172 LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx);
173 LUA_API int (lua_checkstack) (lua_State *L, int n);
182 LUA_API int (lua_isnumber) (lua_State *L, int idx);
183 LUA_API int (lua_isstring) (lua_State *L, int idx);
184 LUA_API int (lua_iscfunction) (lua_State *L, int idx);
185 LUA_API int (lua_isinteger) (lua_State *L, int idx);
186 LUA_API int (lua_isuserdata) (lua_State *L, int idx);
187 LUA_API int (lua_type) (lua_State *L, int idx);
188 LUA_API const char *(lua_typename) (lua_State *L, int tp);
190 LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum);
191 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum);
192 LUA_API int (lua_toboolean) (lua_State *L, int idx);
193 LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
194 LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx);
195 LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx);
196 LUA_API void *(lua_touserdata) (lua_State *L, int idx);
197 LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
198 LUA_API const void *(lua_topointer) (lua_State *L, int idx);
220 LUA_API void (lua_arith) (lua_State *L, int op);
226 LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2);
227 LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op);
233 LUA_API void (lua_pushnil) (lua_State *L);
234 LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
235 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
236 LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
237 LUA_API const char *(lua_pushstring) (lua_State *L, const char *s);
238 LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt,
240 LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...);
241 LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n);
242 LUA_API void (lua_pushboolean) (lua_State *L, int b);
243 LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p);
244 LUA_API int (lua_pushthread) (lua_State *L);
250 LUA_API int (lua_getglobal) (lua_State *L, const char *name);
251 LUA_API int (lua_gettable) (lua_State *L, int idx);
252 LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k);
253 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n);
254 LUA_API int (lua_rawget) (lua_State *L, int idx);
255 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n);
256 LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p);
258 LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
259 LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue);
260 LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
261 LUA_API int (lua_getiuservalue) (lua_State *L, int idx, int n);
267 LUA_API void (lua_setglobal) (lua_State *L, const char *name);
268 LUA_API void (lua_settable) (lua_State *L, int idx);
269 LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
270 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n);
271 LUA_API void (lua_rawset) (lua_State *L, int idx);
272 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n);
273 LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p);
274 LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
275 LUA_API int (lua_setiuservalue) (lua_State *L, int idx, int n);
281 LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults,
283 #define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) argument
285 LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
287 #define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) argument
289 LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
292 LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
298 LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx,
300 LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg,
302 LUA_API int (lua_status) (lua_State *L);
303 LUA_API int (lua_isyieldable) (lua_State *L);
305 #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) argument
311 LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud);
312 LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont);
331 LUA_API int (lua_gc) (lua_State *L, int what, ...);
338 LUA_API int (lua_error) (lua_State *L);
340 LUA_API int (lua_next) (lua_State *L, int idx);
342 LUA_API void (lua_concat) (lua_State *L, int n);
343 LUA_API void (lua_len) (lua_State *L, int idx);
345 LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
347 LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
348 LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
350 LUA_API void (lua_toclose) (lua_State *L, int idx);
351 LUA_API void (lua_closeslot) (lua_State *L, int idx);
360 #define lua_getextraspace(L) ((void *)((char *)(L) - LUA_EXTRASPACE)) argument
362 #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) argument
363 #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) argument
365 #define lua_pop(L,n) lua_settop(L, -(n)-1) argument
367 #define lua_newtable(L) lua_createtable(L, 0, 0) argument
369 #define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) argument
371 #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) argument
373 #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) argument
374 #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) argument
375 #define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) argument
376 #define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL) argument
377 #define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN) argument
378 #define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD) argument
379 #define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE) argument
380 #define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) argument
382 #define lua_pushliteral(L, s) lua_pushstring(L, "" s) argument
384 #define lua_pushglobaltable(L) \ argument
385 ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS))
387 #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) argument
390 #define lua_insert(L,idx) lua_rotate(L, (idx), 1) argument
392 #define lua_remove(L,idx) (lua_rotate(L, (idx), -1), lua_pop(L, 1)) argument
394 #define lua_replace(L,idx) (lua_copy(L, -1, (idx)), lua_pop(L, 1)) argument
406 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) argument
407 #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is)) argument
408 #define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL) argument
412 #define lua_newuserdata(L,s) lua_newuserdatauv(L,s,1) argument
413 #define lua_getuservalue(L,idx) lua_getiuservalue(L,idx,1) argument
414 #define lua_setuservalue(L,idx) lua_setiuservalue(L,idx,1) argument
449 typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
452 LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar);
453 LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar);
454 LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n);
455 LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n);
456 LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n);
457 LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n);
459 LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n);
460 LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1,
463 LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count);
464 LUA_API lua_Hook (lua_gethook) (lua_State *L);
465 LUA_API int (lua_gethookmask) (lua_State *L);
466 LUA_API int (lua_gethookcount) (lua_State *L);
468 LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit);