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

Function luaL_len

third-party/lua-5.2.4/src/lauxlib.c:725–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723
724
725LUALIB_API int luaL_len (lua_State *L, int idx) {
726 int l;
727 int isnum;
728 lua_len(L, idx);
729 l = (int)lua_tointegerx(L, -1, &isnum);
730 if (!isnum)
731 luaL_error(L, "object length is not a number");
732 lua_pop(L, 1); /* remove object */
733 return l;
734}
735
736
737LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {

Callers 14

pushargsFunction · 0.85
tunpackFunction · 0.85
pushargsFunction · 0.85
tunpackFunction · 0.85
addtoclibFunction · 0.85
gctmFunction · 0.85
pushargsFunction · 0.85
unpackFunction · 0.85
addtoclibFunction · 0.85
gctmFunction · 0.85
tconcatFunction · 0.85
unpackFunction · 0.85

Calls 3

lua_lenFunction · 0.70
lua_tointegerxFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected