| 371 | |
| 372 | |
| 373 | LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) { |
| 374 | lua_Number n = 0; |
| 375 | const TValue *o = index2value(L, idx); |
| 376 | int isnum = tonumber(o, &n); |
| 377 | if (pisnum) |
| 378 | *pisnum = isnum; |
| 379 | return n; |
| 380 | } |
| 381 | |
| 382 | |
| 383 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
no test coverage detected