MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_rawlen

Function lua_rawlen

src/Chain/libraries/glua/lapi.cpp:395–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394
395LUA_API size_t lua_rawlen(lua_State *L, int idx) {
396 StkId o = index2addr(L, idx);
397 switch (ttype(o)) {
398 case LUA_TSHRSTR: return tsvalue(o)->shrlen;
399 case LUA_TLNGSTR: return tsvalue(o)->u.lnglen;
400 case LUA_TUSERDATA: return uvalue(o)->len;
401 case LUA_TTABLE: return luaH_getn(hvalue(o));
402 default: return 0;
403 }
404}
405
406
407LUA_API lua_CFunction lua_tocfunction(lua_State *L, int idx) {

Callers 3

read_lineFunction · 0.85
luaL_refFunction · 0.85
luaB_rawlenFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getnFunction · 0.85

Tested by

no test coverage detected