MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_Unsigned

Function lua_Unsigned

extlibs/lua/src/lapi.c:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396
397LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) {
398 const TValue *o = index2value(L, idx);
399 switch (ttypetag(o)) {
400 case LUA_VSHRSTR: return tsvalue(o)->shrlen;
401 case LUA_VLNGSTR: return tsvalue(o)->u.lnglen;
402 case LUA_VUSERDATA: return uvalue(o)->len;
403 case LUA_VTABLE: return luaH_getn(hvalue(o));
404 default: return 0;
405 }
406}
407
408
409LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {

Callers

nothing calls this directly

Calls 2

index2valueFunction · 0.85
luaH_getnFunction · 0.85

Tested by

no test coverage detected