| 350 | |
| 351 | |
| 352 | LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) { |
| 353 | lua_Number n = 0; |
| 354 | const TValue *o = index2value(L, idx); |
| 355 | int isnum = tonumber(o, &n); |
| 356 | if (pisnum) |
| 357 | *pisnum = isnum; |
| 358 | return n; |
| 359 | } |
| 360 | |
| 361 | |
| 362 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
no test coverage detected