MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_Integer luaL_len

Function lua_Integer luaL_len

src/Chain/libraries/glua/lauxlib.cpp:2432–2441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2430
2431
2432LUALIB_API lua_Integer luaL_len(lua_State *L, int idx) {
2433 lua_Integer l;
2434 int isnum;
2435 lua_len(L, idx);
2436 l = lua_tointegerx(L, -1, &isnum);
2437 if (!isnum)
2438 luaL_error(L, "object length is not an integer");
2439 lua_pop(L, 1); /* remove object */
2440 return l;
2441}
2442
2443
2444LUALIB_API const char *luaL_tolstring(lua_State *L, int idx, size_t *len) {

Callers

nothing calls this directly

Calls 2

lua_lenFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected