aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 21:23:20 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 21:23:37 +0200
commit4535f74f63f21ca6c51ca8e2d0081d7add34dcb7 (patch)
tree9ef3f3a44b0ec245dcde72fb67d65237559902fd /include
parentc6be2e43358fccf9b8e89f9ad9f55ff57fbbeb3e (diff)
downloadpugl-4535f74f63f21ca6c51ca8e2d0081d7add34dcb7.tar.gz
pugl-4535f74f63f21ca6c51ca8e2d0081d7add34dcb7.tar.bz2
pugl-4535f74f63f21ca6c51ca8e2d0081d7add34dcb7.zip
Make backend function wrappers noexcept
Diffstat (limited to 'include')
-rw-r--r--include/pugl/pugl_cairo.hpp2
-rw-r--r--include/pugl/pugl_gl.hpp4
-rw-r--r--include/pugl/pugl_stub.hpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/pugl/pugl_cairo.hpp b/include/pugl/pugl_cairo.hpp
index 5b17ab7..213c977 100644
--- a/include/pugl/pugl_cairo.hpp
+++ b/include/pugl/pugl_cairo.hpp
@@ -36,7 +36,7 @@ namespace pugl {
/// @copydoc puglCairoBackend
static inline const PuglBackend*
-cairoBackend()
+cairoBackend() noexcept
{
return puglCairoBackend();
}
diff --git a/include/pugl/pugl_gl.hpp b/include/pugl/pugl_gl.hpp
index 4bc5bbd..b7c581e 100644
--- a/include/pugl/pugl_gl.hpp
+++ b/include/pugl/pugl_gl.hpp
@@ -39,14 +39,14 @@ using GlFunc = PuglGlFunc;
/// @copydoc puglGetProcAddress
static inline GlFunc
-getProcAddress(const char* name)
+getProcAddress(const char* name) noexcept
{
return puglGetProcAddress(name);
}
/// @copydoc puglGlBackend
static inline const PuglBackend*
-glBackend()
+glBackend() noexcept
{
return puglGlBackend();
}
diff --git a/include/pugl/pugl_stub.hpp b/include/pugl/pugl_stub.hpp
index c5f3901..362682b 100644
--- a/include/pugl/pugl_stub.hpp
+++ b/include/pugl/pugl_stub.hpp
@@ -36,7 +36,7 @@ namespace pugl {
/// @copydoc puglStubBackend
static inline const PuglBackend*
-stubBackend()
+stubBackend() noexcept
{
return puglStubBackend();
}