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

Function lua_rawlen

third-party/lua-5.2.4/src/lapi.c:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405
406
407LUA_API size_t lua_rawlen (lua_State *L, int idx) {
408 StkId o = index2addr(L, idx);
409 switch (ttypenv(o)) {
410 case LUA_TSTRING: return tsvalue(o)->len;
411 case LUA_TUSERDATA: return uvalue(o)->len;
412 case LUA_TTABLE: return luaH_getn(hvalue(o));
413 default: return 0;
414 }
415}
416
417
418LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {

Callers 3

luaB_rawlenFunction · 0.70
luaL_refFunction · 0.70
read_lineFunction · 0.70

Calls 2

index2addrFunction · 0.70
luaH_getnFunction · 0.70

Tested by

no test coverage detected