MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_Integer

Function lua_Integer

third-party/lua-5.5.0/src/lauxlib.c:910–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908
909
910LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
911 lua_Integer l;
912 int isnum;
913 lua_len(L, idx);
914 l = lua_tointegerx(L, -1, &isnum);
915 if (l_unlikely(!isnum))
916 luaL_error(L, "object length is not an integer");
917 lua_pop(L, 1); /* remove object */
918 return l;
919}
920
921
922LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {

Callers

nothing calls this directly

Calls 3

lua_lenFunction · 0.70
lua_tointegerxFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected