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

Function lua_Integer lua_tointegerx

src/lapi.cpp:440–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438
439
440LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
441 lua_Integer res = 0;
442 const TValue *o = index2value(L, idx);
443 int isnum = tointeger(o, &res);
444 if (pisnum)
445 *pisnum = isnum;
446 return res;
447}
448
449
450LUA_API int lua_toboolean (lua_State *L, int idx) {

Callers

nothing calls this directly

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected