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

Function lua_Integer

third-party/lua-5.4.6/src/lauxlib.c:886–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884
885
886LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
887 lua_Integer l;
888 int isnum;
889 lua_len(L, idx);
890 l = lua_tointegerx(L, -1, &isnum);
891 if (l_unlikely(!isnum))
892 luaL_error(L, "object length is not an integer");
893 lua_pop(L, 1); /* remove object */
894 return l;
895}
896
897
898LUALIB_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