| 424 | |
| 425 | |
| 426 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
| 427 | int isnum; |
| 428 | lua_Number d = lua_tonumberx(L, arg, &isnum); |
| 429 | if (l_unlikely(!isnum)) |
| 430 | tag_error(L, arg, LUA_TNUMBER); |
| 431 | return d; |
| 432 | } |
| 433 | |
| 434 | |
| 435 | LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) { |
no test coverage detected