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