Lines Matching +full:- +full:l

33 ** search for 'objidx' in table at index -1.
36 static int findfield (lua_State *L, int objidx, int level) { in findfield() argument
37 if (level == 0 || !lua_istable(L, -1)) in findfield()
39 lua_pushnil(L); /* start 'next' loop */ in findfield()
40 while (lua_next(L, -2)) { /* for each pair in table */ in findfield()
41 if (lua_type(L, -2) == LUA_TSTRING) { /* ignore non-string keys */ in findfield()
42 if (lua_rawequal(L, objidx, -1)) { /* found object? */ in findfield()
43 lua_pop(L, 1); /* remove value (but keep name) */ in findfield()
46 else if (findfield(L, objidx, level - 1)) { /* try recursively */ in findfield()
47 lua_remove(L, -2); /* remove table (but keep name) */ in findfield()
48 lua_pushliteral(L, "."); in findfield()
49 lua_insert(L, -2); /* place '.' between the two names */ in findfield()
50 lua_concat(L, 3); in findfield()
54 lua_pop(L, 1); /* remove value */ in findfield()
60 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() argument
61 int top = lua_gettop(L); in pushglobalfuncname()
62 lua_getinfo(L, "f", ar); /* push function */ in pushglobalfuncname()
63 lua_pushglobaltable(L); in pushglobalfuncname()
64 if (findfield(L, top + 1, 2)) { in pushglobalfuncname()
65 lua_copy(L, -1, top + 1); /* move name to proper place */ in pushglobalfuncname()
66 lua_pop(L, 2); /* remove pushed values */ in pushglobalfuncname()
70 lua_settop(L, top); /* remove function and global table */ in pushglobalfuncname()
76 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() argument
77 if (*ar->namewhat != '\0') /* is there a name? */ in pushfuncname()
78 lua_pushfstring(L, "function " LUA_QS, ar->name); in pushfuncname()
79 else if (*ar->what == 'm') /* main? */ in pushfuncname()
80 lua_pushliteral(L, "main chunk"); in pushfuncname()
81 else if (*ar->what == 'C') { in pushfuncname()
82 if (pushglobalfuncname(L, ar)) { in pushfuncname()
83 lua_pushfstring(L, "function " LUA_QS, lua_tostring(L, -1)); in pushfuncname()
84 lua_remove(L, -2); /* remove name */ in pushfuncname()
87 lua_pushliteral(L, "?"); in pushfuncname()
90 lua_pushfstring(L, "function <%s:%d>", ar->short_src, ar->linedefined); in pushfuncname()
94 static int countlevels (lua_State *L) { in countlevels() argument
98 while (lua_getstack(L, le, &ar)) { li = le; le *= 2; } in countlevels()
102 if (lua_getstack(L, m, &ar)) li = m + 1; in countlevels()
105 return le - 1; in countlevels()
109 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() argument
112 int top = lua_gettop(L); in luaL_traceback()
115 if (msg) lua_pushfstring(L, "%s\n", msg); in luaL_traceback()
116 lua_pushliteral(L, "stack traceback:"); in luaL_traceback()
119 lua_pushliteral(L, "\n\t..."); /* add a '...' */ in luaL_traceback()
120 level = numlevels - LEVELS2; /* and skip to last ones */ in luaL_traceback()
124 lua_pushfstring(L, "\n\t%s:", ar.short_src); in luaL_traceback()
126 lua_pushfstring(L, "%d:", ar.currentline); in luaL_traceback()
127 lua_pushliteral(L, " in "); in luaL_traceback()
128 pushfuncname(L, &ar); in luaL_traceback()
130 lua_pushliteral(L, "\n\t(...tail calls...)"); in luaL_traceback()
131 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
134 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
142 ** Error-report functions
146 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror() argument
148 if (!lua_getstack(L, 0, &ar)) /* no stack frame? */ in luaL_argerror()
149 return luaL_error(L, "bad argument #%d (%s)", narg, extramsg); in luaL_argerror()
150 lua_getinfo(L, "n", &ar); in luaL_argerror()
152 narg--; /* do not count `self' */ in luaL_argerror()
154 return luaL_error(L, "calling " LUA_QS " on bad self (%s)", in luaL_argerror()
158 ar.name = (pushglobalfuncname(L, &ar)) ? lua_tostring(L, -1) : "?"; in luaL_argerror()
159 return luaL_error(L, "bad argument #%d to " LUA_QS " (%s)", in luaL_argerror()
164 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() argument
165 const char *msg = lua_pushfstring(L, "%s expected, got %s", in typeerror()
166 tname, luaL_typename(L, narg)); in typeerror()
167 return luaL_argerror(L, narg, msg); in typeerror()
171 static void tag_error (lua_State *L, int narg, int tag) { in tag_error() argument
172 typeerror(L, narg, lua_typename(L, tag)); in tag_error()
176 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() argument
178 if (lua_getstack(L, level, &ar)) { /* check function at level */ in luaL_where()
179 lua_getinfo(L, "Sl", &ar); /* get info about it */ in luaL_where()
181 lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline); in luaL_where()
185 lua_pushliteral(L, ""); /* else, no information available... */ in luaL_where()
189 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() argument
192 luaL_where(L, 1); in luaL_error()
193 lua_pushvfstring(L, fmt, argp); in luaL_error()
195 lua_concat(L, 2); in luaL_error()
196 return lua_error(L); in luaL_error()
231 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
232 luaL_getmetatable(L, tname); /* try to get metatable */ in luaL_newmetatable()
233 if (!lua_isnil(L, -1)) /* name already in use? */ in luaL_newmetatable()
235 lua_pop(L, 1); in luaL_newmetatable()
236 lua_newtable(L); /* create metatable */ in luaL_newmetatable()
237 lua_pushvalue(L, -1); in luaL_newmetatable()
238 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
243 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
244 luaL_getmetatable(L, tname); in luaL_setmetatable()
245 lua_setmetatable(L, -2); in luaL_setmetatable()
249 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
250 void *p = lua_touserdata(L, ud); in luaL_testudata()
252 if (lua_getmetatable(L, ud)) { /* does it have a metatable? */ in luaL_testudata()
253 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
254 if (!lua_rawequal(L, -1, -2)) /* not the same? */ in luaL_testudata()
256 lua_pop(L, 2); /* remove both metatables */ in luaL_testudata()
264 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
265 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
266 if (p == NULL) typeerror(L, ud, tname); in luaL_checkudata()
279 LUALIB_API int luaL_checkoption (lua_State *L, int narg, const char *def, in luaL_checkoption() argument
281 const char *name = (def) ? luaL_optstring(L, narg, def) : in luaL_checkoption()
282 luaL_checkstring(L, narg); in luaL_checkoption()
287 return luaL_argerror(L, narg, in luaL_checkoption()
288 lua_pushfstring(L, "invalid option " LUA_QS, name)); in luaL_checkoption()
292 LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { in luaL_checkstack() argument
295 if (!lua_checkstack(L, space + extra)) { in luaL_checkstack()
297 luaL_error(L, "stack overflow (%s)", msg); in luaL_checkstack()
299 luaL_error(L, "stack overflow"); in luaL_checkstack()
304 LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) { in luaL_checktype() argument
305 if (lua_type(L, narg) != t) in luaL_checktype()
306 tag_error(L, narg, t); in luaL_checktype()
310 LUALIB_API void luaL_checkany (lua_State *L, int narg) { in luaL_checkany() argument
311 if (lua_type(L, narg) == LUA_TNONE) in luaL_checkany()
312 luaL_argerror(L, narg, "value expected"); in luaL_checkany()
316 LUALIB_API const char *luaL_checklstring (lua_State *L, int narg, size_t *len) { in luaL_checklstring() argument
317 const char *s = lua_tolstring(L, narg, len); in luaL_checklstring()
318 if (!s) tag_error(L, narg, LUA_TSTRING); in luaL_checklstring()
323 LUALIB_API const char *luaL_optlstring (lua_State *L, int narg, in luaL_optlstring() argument
325 if (lua_isnoneornil(L, narg)) { in luaL_optlstring()
330 else return luaL_checklstring(L, narg, len); in luaL_optlstring()
334 LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { in luaL_checknumber() argument
336 lua_Number d = lua_tonumberx(L, narg, &isnum); in luaL_checknumber()
338 tag_error(L, narg, LUA_TNUMBER); in luaL_checknumber()
343 LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) { in luaL_optnumber() argument
344 return luaL_opt(L, luaL_checknumber, narg, def); in luaL_optnumber()
348 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { in luaL_checkinteger() argument
350 lua_Integer d = lua_tointegerx(L, narg, &isnum); in luaL_checkinteger()
352 tag_error(L, narg, LUA_TNUMBER); in luaL_checkinteger()
357 LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) { in luaL_checkunsigned() argument
359 lua_Unsigned d = lua_tounsignedx(L, narg, &isnum); in luaL_checkunsigned()
361 tag_error(L, narg, LUA_TNUMBER); in luaL_checkunsigned()
366 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, in luaL_optinteger() argument
368 return luaL_opt(L, luaL_checkinteger, narg, def); in luaL_optinteger()
372 LUALIB_API lua_Unsigned luaL_optunsigned (lua_State *L, int narg, in luaL_optunsigned() argument
374 return luaL_opt(L, luaL_checkunsigned, narg, def); in luaL_optunsigned()
390 #define buffonstack(B) ((B)->b != (B)->initb)
397 lua_State *L = B->L; in luaL_prepbuffsize() local
398 if (B->size - B->n < sz) { /* not enough space? */ in luaL_prepbuffsize()
400 size_t newsize = B->size * 2; /* double buffer size */ in luaL_prepbuffsize()
401 if (newsize - B->n < sz) /* not big enough? */ in luaL_prepbuffsize()
402 newsize = B->n + sz; in luaL_prepbuffsize()
403 if (newsize < B->n || newsize - B->n < sz) in luaL_prepbuffsize()
404 luaL_error(L, "buffer too large"); in luaL_prepbuffsize()
406 newbuff = (char *)lua_newuserdata(L, newsize * sizeof(char)); in luaL_prepbuffsize()
408 memcpy(newbuff, B->b, B->n * sizeof(char)); in luaL_prepbuffsize()
410 lua_remove(L, -2); /* remove old buffer */ in luaL_prepbuffsize()
411 B->b = newbuff; in luaL_prepbuffsize()
412 B->size = newsize; in luaL_prepbuffsize()
414 return &B->b[B->n]; in luaL_prepbuffsize()
418 LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { in luaL_addlstring() argument
419 char *b = luaL_prepbuffsize(B, l); in luaL_addlstring()
420 memcpy(b, s, l * sizeof(char)); in luaL_addlstring()
421 luaL_addsize(B, l); in luaL_addlstring()
431 lua_State *L = B->L; in luaL_pushresult() local
432 lua_pushlstring(L, B->b, B->n); in luaL_pushresult()
434 lua_remove(L, -2); /* remove old buffer */ in luaL_pushresult()
445 lua_State *L = B->L; in luaL_addvalue() local
446 size_t l; in luaL_addvalue() local
447 const char *s = lua_tolstring(L, -1, &l); in luaL_addvalue()
449 lua_insert(L, -2); /* put value below buffer */ in luaL_addvalue()
450 luaL_addlstring(B, s, l); in luaL_addvalue()
451 lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */ in luaL_addvalue()
455 LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) { in luaL_buffinit() argument
456 B->L = L; in luaL_buffinit()
457 B->b = B->initb; in luaL_buffinit()
458 B->n = 0; in luaL_buffinit()
459 B->size = LUAL_BUFFERSIZE; in luaL_buffinit()
463 LUALIB_API char *luaL_buffinitsize (lua_State *L, luaL_Buffer *B, size_t sz) { in luaL_buffinitsize() argument
464 luaL_buffinit(L, B); in luaL_buffinitsize()
477 /* index of free-list header */
481 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref() argument
483 if (lua_isnil(L, -1)) { in luaL_ref()
484 lua_pop(L, 1); /* remove from stack */ in luaL_ref()
487 t = lua_absindex(L, t); in luaL_ref()
488 lua_rawgeti(L, t, freelist); /* get first free element */ in luaL_ref()
489 ref = (int)lua_tointeger(L, -1); /* ref = t[freelist] */ in luaL_ref()
490 lua_pop(L, 1); /* remove it from stack */ in luaL_ref()
492 lua_rawgeti(L, t, ref); /* remove it from list */ in luaL_ref()
493 lua_rawseti(L, t, freelist); /* (t[freelist] = t[ref]) */ in luaL_ref()
496 ref = (int)lua_rawlen(L, t) + 1; /* get a new reference */ in luaL_ref()
497 lua_rawseti(L, t, ref); in luaL_ref()
502 LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { in luaL_unref() argument
504 t = lua_absindex(L, t); in luaL_unref()
505 lua_rawgeti(L, t, freelist); in luaL_unref()
506 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ in luaL_unref()
507 lua_pushinteger(L, ref); in luaL_unref()
508 lua_rawseti(L, t, freelist); /* t[freelist] = ref */ in luaL_unref()
527 static const char *getS (lua_State *L, void *ud, size_t *size) { in getS() argument
529 (void)L; /* not used */ in getS()
530 if (ls->size == 0) return NULL; in getS()
531 *size = ls->size; in getS()
532 ls->size = 0; in getS()
533 return ls->s; in getS()
537 LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size, in luaL_loadbufferx() argument
542 return lua_load(L, getS, &ls, name, mode); in luaL_loadbufferx()
546 LUALIB_API int luaL_loadstring (lua_State *L, const char *s) { in luaL_loadstring() argument
547 return luaL_loadbuffer(L, s, strlen(s), s); in luaL_loadstring()
554 LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *event) { in luaL_getmetafield() argument
555 if (!lua_getmetatable(L, obj)) /* no metatable? */ in luaL_getmetafield()
557 lua_pushstring(L, event); in luaL_getmetafield()
558 lua_rawget(L, -2); in luaL_getmetafield()
559 if (lua_isnil(L, -1)) { in luaL_getmetafield()
560 lua_pop(L, 2); /* remove metatable and metafield */ in luaL_getmetafield()
564 lua_remove(L, -2); /* remove only metatable */ in luaL_getmetafield()
570 LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { in luaL_callmeta() argument
571 obj = lua_absindex(L, obj); in luaL_callmeta()
572 if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ in luaL_callmeta()
574 lua_pushvalue(L, obj); in luaL_callmeta()
575 lua_call(L, 1, 1); in luaL_callmeta()
580 LUALIB_API int luaL_len (lua_State *L, int idx) { in luaL_len() argument
581 int l; in luaL_len() local
583 lua_len(L, idx); in luaL_len()
584 l = (int)lua_tointegerx(L, -1, &isnum); in luaL_len()
586 luaL_error(L, "object length is not a number"); in luaL_len()
587 lua_pop(L, 1); /* remove object */ in luaL_len()
588 return l; in luaL_len()
592 LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { in luaL_tolstring() argument
593 if (!luaL_callmeta(L, idx, "__tostring")) { /* no metafield? */ in luaL_tolstring()
594 switch (lua_type(L, idx)) { in luaL_tolstring()
597 lua_pushvalue(L, idx); in luaL_tolstring()
600 lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); in luaL_tolstring()
603 lua_pushliteral(L, "nil"); in luaL_tolstring()
606 lua_pushfstring(L, "%s: %p", luaL_typename(L, idx), in luaL_tolstring()
607 lua_topointer(L, idx)); in luaL_tolstring()
611 return lua_tolstring(L, -1, len); in luaL_tolstring()
622 static const char *luaL_findtable (lua_State *L, int idx, in luaL_findtable() argument
625 if (idx) lua_pushvalue(L, idx); in luaL_findtable()
629 lua_pushlstring(L, fname, e - fname); in luaL_findtable()
630 lua_rawget(L, -2); in luaL_findtable()
631 if (lua_isnil(L, -1)) { /* no such field? */ in luaL_findtable()
632 lua_pop(L, 1); /* remove this nil */ in luaL_findtable()
633 lua_createtable(L, 0, (*e == '.' ? 1 : szhint)); /* new table for field */ in luaL_findtable()
634 lua_pushlstring(L, fname, e - fname); in luaL_findtable()
635 lua_pushvalue(L, -2); in luaL_findtable()
636 lua_settable(L, -4); /* set new table into field */ in luaL_findtable()
638 else if (!lua_istable(L, -1)) { /* field has a non-table value? */ in luaL_findtable()
639 lua_pop(L, 2); /* remove table and value */ in luaL_findtable()
642 lua_remove(L, -2); /* remove previous table */ in luaL_findtable()
652 static int libsize (const luaL_Reg *l) { in libsize() argument
654 for (; l && l->name; l++) size++; in libsize()
665 LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, in luaL_pushmodule() argument
667 luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 1); /* get _LOADED table */ in luaL_pushmodule()
668 lua_getfield(L, -1, modname); /* get _LOADED[modname] */ in luaL_pushmodule()
669 if (!lua_istable(L, -1)) { /* not found? */ in luaL_pushmodule()
670 lua_pop(L, 1); /* remove previous result */ in luaL_pushmodule()
672 lua_pushglobaltable(L); in luaL_pushmodule()
673 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
674 luaL_error(L, "name conflict for module " LUA_QS, modname); in luaL_pushmodule()
675 lua_pushvalue(L, -1); in luaL_pushmodule()
676 lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ in luaL_pushmodule()
678 lua_remove(L, -2); /* remove _LOADED table */ in luaL_pushmodule()
682 LUALIB_API void luaL_openlib (lua_State *L, const char *libname, in luaL_openlib() argument
683 const luaL_Reg *l, int nup) { in luaL_openlib() argument
684 luaL_checkversion(L); in luaL_openlib()
686 luaL_pushmodule(L, libname, libsize(l)); /* get/create library table */ in luaL_openlib()
687 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ in luaL_openlib()
689 if (l) in luaL_openlib()
690 luaL_setfuncs(L, l, nup); in luaL_openlib()
692 lua_pop(L, nup); /* remove upvalues */ in luaL_openlib()
699 ** set functions from list 'l' into table at top - 'nup'; each
703 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { in luaL_setfuncs() argument
704 luaL_checkversion(L); in luaL_setfuncs()
705 luaL_checkstack(L, nup, "too many upvalues"); in luaL_setfuncs()
706 for (; l->name != NULL; l++) { /* fill the table with given functions */ in luaL_setfuncs()
709 lua_pushvalue(L, -nup); in luaL_setfuncs()
710 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ in luaL_setfuncs()
711 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs()
713 lua_pop(L, nup); /* remove upvalues */ in luaL_setfuncs()
721 LUALIB_API int luaL_getsubtable (lua_State *L, int idx, const char *fname) { in luaL_getsubtable() argument
722 lua_getfield(L, idx, fname); in luaL_getsubtable()
723 if (lua_istable(L, -1)) return 1; /* table already there */ in luaL_getsubtable()
725 lua_pop(L, 1); /* remove previous result */ in luaL_getsubtable()
726 idx = lua_absindex(L, idx); in luaL_getsubtable()
727 lua_newtable(L); in luaL_getsubtable()
728 lua_pushvalue(L, -1); /* copy to be left at top */ in luaL_getsubtable()
729 lua_setfield(L, idx, fname); /* assign new table to field */ in luaL_getsubtable()
736 ** stripped-down 'require'. Calls 'openf' to open a module,
741 LUALIB_API void luaL_requiref (lua_State *L, const char *modname, in luaL_requiref() argument
743 lua_pushcfunction(L, openf); in luaL_requiref()
744 lua_pushstring(L, modname); /* argument to open function */ in luaL_requiref()
745 lua_call(L, 1, 1); /* open module */ in luaL_requiref()
746 luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED"); in luaL_requiref()
747 lua_pushvalue(L, -2); /* make copy of module (call result) */ in luaL_requiref()
748 lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ in luaL_requiref()
749 lua_pop(L, 1); /* remove _LOADED table */ in luaL_requiref()
751 lua_pushvalue(L, -1); /* copy of 'mod' */ in luaL_requiref()
752 lua_setglobal(L, modname); /* _G[modname] = module */ in luaL_requiref()
757 LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, in luaL_gsub() argument
760 size_t l = strlen(p); in luaL_gsub() local
762 luaL_buffinit(L, &b); in luaL_gsub()
764 luaL_addlstring(&b, s, wild - s); /* push prefix */ in luaL_gsub()
766 s = wild + l; /* continue after `p' */ in luaL_gsub()
770 return lua_tostring(L, -1); in luaL_gsub()
774 LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) { in luaL_checkversion_() argument
775 const lua_Number *v = lua_version(L); in luaL_checkversion_()
777 luaL_error(L, "multiple Lua VMs detected"); in luaL_checkversion_()
779 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", in luaL_checkversion_()
781 /* check conversions number -> integer types */ in luaL_checkversion_()
782 lua_pushnumber(L, -(lua_Number)0x1234); in luaL_checkversion_()
783 if (lua_tointeger(L, -1) != -0x1234 || in luaL_checkversion_()
784 lua_tounsigned(L, -1) != (lua_Unsigned)-0x1234) in luaL_checkversion_()
785 luaL_error(L, "bad conversion number->int;" in luaL_checkversion_()
787 lua_pop(L, 1); in luaL_checkversion_()