| 381 | |
| 382 | |
| 383 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
| 384 | lua_Integer res = 0; |
| 385 | const TValue *o = index2value(L, idx); |
| 386 | int isnum = tointeger(o, &res); |
| 387 | if (pisnum) |
| 388 | *pisnum = isnum; |
| 389 | return res; |
| 390 | } |
| 391 | |
| 392 | |
| 393 | LUA_API int lua_toboolean (lua_State *L, int idx) { |
no test coverage detected