mirror of https://github.com/bjornbytes/lovr.git
Fix luax_optu32;
This commit is contained in:
parent
3009e1d45c
commit
2abf1a4a0c
|
@ -105,7 +105,7 @@ typedef struct {
|
|||
#define luax_checkfloat(L, i) (float) luaL_checknumber(L, i)
|
||||
#define luax_optfloat(L, i, x) (float) luaL_optnumber(L, i, x)
|
||||
#define luax_tofloat(L, i) (float) lua_tonumber(L, i)
|
||||
#define luax_optu32(L, i, x) lua_isnoneornil(L, i) ? (x) : luax_checku32(L, i)
|
||||
#define luax_optu32(L, i, x) (lua_isnoneornil(L, i) ? (x) : luax_checku32(L, i))
|
||||
#define luax_geterror(L) lua_getfield(L, LUA_REGISTRYINDEX, "_lovrerror")
|
||||
#define luax_seterror(L) lua_setfield(L, LUA_REGISTRYINDEX, "_lovrerror")
|
||||
#define luax_clearerror(L) lua_pushnil(L), luax_seterror(L)
|
||||
|
|
Loading…
Reference in New Issue