From 71312135e580b247d500070ea699462a6f3c26eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 31 Oct 2020 13:00:52 +0100 Subject: Make use of exceptions optional --- bindings/cxx/include/pugl/pugl.ipp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bindings/cxx/include/pugl/pugl.ipp') 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&) { -- cgit v1.2.1