| 397 | |
| 398 | |
| 399 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
| 400 | lua_Integer res = 0; |
| 401 | const TValue *o = index2value(L, idx); |
| 402 | int isnum = tointeger(o, &res); |
| 403 | if (pisnum) |
| 404 | *pisnum = isnum; |
| 405 | return res; |
| 406 | } |
| 407 | |
| 408 | |
| 409 | LUA_API int lua_toboolean (lua_State *L, int idx) { |
no test coverage detected