mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02: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:
@@ -177,7 +177,7 @@ namespace opengl
|
||||
catch (utf8::exception & e)
|
||||
{
|
||||
glPopMatrix();
|
||||
throw love::Exception(1, e.what());
|
||||
throw love::Exception("%s", e.what());
|
||||
}
|
||||
glPopMatrix();
|
||||
}
|
||||
@@ -212,7 +212,7 @@ namespace opengl
|
||||
}
|
||||
catch (utf8::exception & e)
|
||||
{
|
||||
throw love::Exception(1, e.what());
|
||||
throw love::Exception("%s", e.what());
|
||||
}
|
||||
|
||||
return temp;
|
||||
|
||||
Reference in New Issue
Block a user