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

Function lua_Integer

src/lauxlib.cpp:1048–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046
1047
1048LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
1049 lua_Integer l;
1050 int isnum;
1051 lua_len(L, idx);
1052 l = lua_tointegerx(L, -1, &isnum);
1053 if (l_unlikely(!isnum))
1054 luaL_error(L, "object length is not an integer");
1055 lua_pop(L, 1); /* remove object */
1056 return l;
1057}
1058
1059
1060LUALIB_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