MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / lua_Unsigned

Function lua_Unsigned

lua/src/lapi.c:430–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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