MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / lua_Unsigned

Function lua_Unsigned

Dependencies/lua/src/lapi.c:426–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425
426LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) {
427 const TValue *o = index2value(L, idx);
428 switch (ttypetag(o)) {
429 case LUA_VSHRSTR: return tsvalue(o)->shrlen;
430 case LUA_VLNGSTR: return tsvalue(o)->u.lnglen;
431 case LUA_VUSERDATA: return uvalue(o)->len;
432 case LUA_VTABLE: return luaH_getn(hvalue(o));
433 default: return 0;
434 }
435}
436
437
438LUA_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