| 333 | |
| 334 | |
| 335 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { |
| 336 | int isnum; |
| 337 | lua_Number d = lua_tonumberx(L, narg, &isnum); |
| 338 | if (!isnum) |
| 339 | tag_error(L, narg, LUA_TNUMBER); |
| 340 | return d; |
| 341 | } |
| 342 | |
| 343 | |
| 344 | LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) { |
no test coverage detected