aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cxx/include/pugl/pugl.ipp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-31 13:00:52 +0100
committerDavid Robillard <d@drobilla.net>2020-10-31 13:00:52 +0100
commit71312135e580b247d500070ea699462a6f3c26eb (patch)
tree6908e225d732e80b9bf2ceca4e2f6bb080b3fc31 /bindings/cxx/include/pugl/pugl.ipp
parent745bc88be59f1cd88cd1b3353f8dda92766f06a7 (diff)
downloadpugl-71312135e580b247d500070ea699462a6f3c26eb.tar.gz
pugl-71312135e580b247d500070ea699462a6f3c26eb.tar.bz2
pugl-71312135e580b247d500070ea699462a6f3c26eb.zip
Make use of exceptions optional
Diffstat (limited to 'bindings/cxx/include/pugl/pugl.ipp')
-rw-r--r--bindings/cxx/include/pugl/pugl.ipp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/cxx/include/pugl/pugl.ipp b/bindings/cxx/include/pugl/pugl.ipp
index b90c878..c11f7d0 100644
--- a/bindings/cxx/include/pugl/pugl.ipp
+++ b/bindings/cxx/include/pugl/pugl.ipp
@@ -25,12 +25,16 @@
namespace pugl {
+#ifdef PUGL_HPP_THROW_FAILED_CONSTRUCTION
+
const char*
FailedConstructionError::what() const noexcept
{
return _msg;
}
+#endif
+
Status
View::onCreate(const CreateEvent&)
{