aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r--alc/backends/base.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h
index 65bc636b..b6b3d922 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -103,13 +103,9 @@ public:
#else
[[gnu::format(printf, 3, 4)]]
#endif
- backend_exception(backend_error code, const char *msg, ...) : mErrorCode{code}
- {
- std::va_list args;
- va_start(args, msg);
- setMessage(msg, args);
- va_end(args);
- }
+ backend_exception(backend_error code, const char *msg, ...);
+ ~backend_exception() override;
+
backend_error errorCode() const noexcept { return mErrorCode; }
};