| 391 | |
| 392 | |
| 393 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
| 394 | lua_Integer res = 0; |
| 395 | const TValue *o = index2value(L, idx); |
| 396 | int isnum = tointeger(o, &res); |
| 397 | if (pisnum) |
| 398 | *pisnum = isnum; |
| 399 | return res; |
| 400 | } |
| 401 | |
| 402 | |
| 403 | LUA_API int lua_toboolean (lua_State *L, int idx) { |
no test coverage detected