mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Make love::Exception safe(r).
Now allows exceptions of arbitrary length. Now allows catching a non-reference, i.e. catch(love::Exception e).
This commit is contained in:
@@ -388,7 +388,7 @@ namespace opengl
|
||||
const char* code = lua_tostring(L, -1);
|
||||
PixelEffect * effect = instance->newPixelEffect(code);
|
||||
luax_newtype(L, "PixelEffect", GRAPHICS_PIXELEFFECT_T, (void*)effect);
|
||||
} catch (love::Exception& e) {
|
||||
} catch (const love::Exception& e) {
|
||||
// memory is freed in Graphics::newPixelEffect
|
||||
luax_getfunction(L, "graphics", "_transformGLSLErrorMessages");
|
||||
lua_pushstring(L, e.what());
|
||||
|
||||
Reference in New Issue
Block a user