MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_Integer

Function lua_Integer

3rd/lua-5.4.3/src/lauxlib.c:871–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869
870
871LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
872 lua_Integer l;
873 int isnum;
874 lua_len(L, idx);
875 l = lua_tointegerx(L, -1, &isnum);
876 if (l_unlikely(!isnum))
877 luaL_error(L, "object length is not an integer");
878 lua_pop(L, 1); /* remove object */
879 return l;
880}
881
882
883LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {

Callers

nothing calls this directly

Calls 3

lua_lenFunction · 0.85
lua_tointegerxFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected