| 360 | |
| 361 | |
| 362 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { |
| 363 | lua_Integer res = 0; |
| 364 | const TValue *o = index2value(L, idx); |
| 365 | int isnum = tointeger(o, &res); |
| 366 | if (pisnum) |
| 367 | *pisnum = isnum; |
| 368 | return res; |
| 369 | } |
| 370 | |
| 371 | |
| 372 | LUA_API int lua_toboolean (lua_State *L, int idx) { |
no test coverage detected