MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / lua_len

Function lua_len

src/lapi.cpp:1408–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406
1407
1408LUA_API void lua_len (lua_State *L, int idx) {
1409 TValue *t;
1410 lua_lock(L);
1411 t = index2value(L, idx);
1412 luaV_objlen(L, L->top.p, t);
1413 api_incr_top(L);
1414 lua_unlock(L);
1415}
1416
1417
1418LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {

Callers 1

lua_IntegerFunction · 0.85

Calls 2

index2valueFunction · 0.85
luaV_objlenFunction · 0.85

Tested by

no test coverage detected