| 438 | |
| 439 | |
| 440 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
| 441 | lua_Integer res = 0; |
| 442 | const TValue *o = index2value(L, idx); |
| 443 | int isnum = tointeger(o, &res); |
| 444 | if (pisnum) |
| 445 | *pisnum = isnum; |
| 446 | return res; |
| 447 | } |
| 448 | |
| 449 | |
| 450 | LUA_API int lua_toboolean (lua_State *L, int idx) { |
nothing calls this directly
no test coverage detected