| 377 | |
| 378 | |
| 379 | LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) { |
| 380 | lua_Number n = 0; |
| 381 | const TValue *o = index2value(L, idx); |
| 382 | int isnum = tonumber(o, &n); |
| 383 | if (pisnum) |
| 384 | *pisnum = isnum; |
| 385 | return n; |
| 386 | } |
| 387 | |
| 388 | |
| 389 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
no test coverage detected