MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_tointegerx

Function lua_tointegerx

lib/lua/src/lapi.c:389–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388
389LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
390 lua_Integer res = 0;
391 const TValue *o = index2value(L, idx);
392 int isnum = tointeger(o, &res);
393 if (pisnum)
394 *pisnum = isnum;
395 return res;
396}
397
398
399LUA_API int lua_toboolean (lua_State *L, int idx) {

Callers 4

math_tointFunction · 0.85
luaL_checkintegerFunction · 0.85
lua_IntegerFunction · 0.85
getfieldFunction · 0.85

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected