diff options
author | David Robillard <d@drobilla.net> | 2020-10-31 13:00:52 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-31 13:00:52 +0100 |
commit | 71312135e580b247d500070ea699462a6f3c26eb (patch) | |
tree | 6908e225d732e80b9bf2ceca4e2f6bb080b3fc31 /bindings/cxx/include/pugl/pugl.ipp | |
parent | 745bc88be59f1cd88cd1b3353f8dda92766f06a7 (diff) | |
download | pugl-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.ipp | 4 |
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&) { |