MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_len

Function lua_len

3rd/lua-5.4.3/src/lapi.c:1291–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289
1290
1291LUA_API void lua_len (lua_State *L, int idx) {
1292 TValue *t;
1293 lua_lock(L);
1294 t = index2value(L, idx);
1295 luaV_objlen(L, L->top, t);
1296 api_incr_top(L);
1297 lua_unlock(L);
1298}
1299
1300
1301LUA_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