diff options
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index 6838c7e3..9cf5e30f 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -21,6 +21,20 @@ #include "core/devformat.h" +namespace al { + +backend_exception::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_exception() = default; + +} // namespace al + + bool BackendBase::reset() { throw al::backend_exception{al::backend_error::DeviceError, "Invalid BackendBase call"}; } |