mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments.
This commit is contained in:
@@ -76,7 +76,7 @@ int w_Shape_rayCast(lua_State *L)
|
||||
Shape *t = luax_checkshape(L, 1);
|
||||
lua_remove(L, 1);
|
||||
int ret = 0;
|
||||
EXCEPT_GUARD(ret = t->rayCast(L);)
|
||||
luax_catchexcept(L, [&](){ ret = t->rayCast(L); });
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user