MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_len

Function luaL_len

freebsd/contrib/openzfs/module/lua/lauxlib.c:581–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579
580
581LUALIB_API int luaL_len (lua_State *L, int idx) {
582 int l;
583 int isnum;
584 lua_len(L, idx);
585 l = (int)lua_tointegerx(L, -1, &isnum);
586 if (!isnum)
587 luaL_error(L, "object length is not a number");
588 lua_pop(L, 1); /* remove object */
589 return l;
590}
591
592
593LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {

Callers 2

tconcatFunction · 0.85
unpackFunction · 0.85

Calls 3

lua_lenFunction · 0.85
lua_tointegerxFunction · 0.85
luaL_errorFunction · 0.70

Tested by

no test coverage detected