From 4535f74f63f21ca6c51ca8e2d0081d7add34dcb7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 21:23:20 +0200 Subject: Make backend function wrappers noexcept --- include/pugl/pugl_cairo.hpp | 2 +- include/pugl/pugl_gl.hpp | 4 ++-- include/pugl/pugl_stub.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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(); } -- cgit v1.2.1