MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_tonumberx

Function lua_tonumberx

third-party/lua-5.5.0/src/lapi.c:389–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaL_checknumberFunction · 0.70

Calls 1

index2valueFunction · 0.70

Tested by

no test coverage detected