aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bindings/cxx/include/pugl/pugl.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindings/cxx/include/pugl/pugl.hpp b/bindings/cxx/include/pugl/pugl.hpp
index 83aa4a0..a16b67f 100644
--- a/bindings/cxx/include/pugl/pugl.hpp
+++ b/bindings/cxx/include/pugl/pugl.hpp
@@ -261,6 +261,17 @@ private:
#elif defined(PUGL_HPP_ASSERT_CONSTRUCTION)
# define PUGL_CHECK_CONSTRUCTION(cond, msg) assert(cond);
#else
+/**
+ Configurable macro for handling construction failure.
+
+ If `PUGL_HPP_THROW_FAILED_CONSTRUCTION` is defined, then this throws a
+ `pugl::FailedConstructionError` if construction fails.
+
+ If `PUGL_HPP_ASSERT_CONSTRUCTION` is defined, then this asserts if
+ construction fails.
+
+ Otherwise, this does nothing.
+*/
# define PUGL_CHECK_CONSTRUCTION(cond, msg)
#endif