antonioginer / switchres

Modeline generation engine for emulation
44 stars 12 forks source link

fix: properly handle exceptions #92

Closed ElijahPepe closed 2 years ago

ElijahPepe commented 2 years ago

throw new std::exception() will throw a pointer; since C++ is not garbage collected, dynamically allocating exceptions in this way is costly and can have unexpected behavior

antonioginer commented 2 years ago

Thanks!