MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_rawlen

Function lua_rawlen

ThirdParty/lua/lua/lapi.c:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388
389
390LUA_API size_t lua_rawlen (lua_State *L, int idx) {
391 StkId o = index2addr(L, idx);
392 switch (ttnov(o)) {
393 case LUA_TSTRING: return tsvalue(o)->len;
394 case LUA_TUSERDATA: return uvalue(o)->len;
395 case LUA_TTABLE: return luaH_getn(hvalue(o));
396 default: return 0;
397 }
398}
399
400
401LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {

Callers 3

luaB_rawlenFunction · 0.85
luaL_refFunction · 0.85
read_lineFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getnFunction · 0.85

Tested by

no test coverage detected