MCPcopy Create free account
hub / github.com/danomatika/ofxLua / lua_Integer

Function lua_Integer

libs/lua/lauxlib.c:877–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875
876
877LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
878 lua_Integer l;
879 int isnum;
880 lua_len(L, idx);
881 l = lua_tointegerx(L, -1, &isnum);
882 if (l_unlikely(!isnum))
883 luaL_error(L, "object length is not an integer");
884 lua_pop(L, 1); /* remove object */
885 return l;
886}
887
888
889LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {

Callers

nothing calls this directly

Calls 3

lua_lenFunction · 0.85
lua_tointegerxFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected