diff options
author | Sven Gothel <[email protected]> | 2023-05-03 16:17:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-03 16:17:49 +0200 |
commit | ec167fd05661a5b02dd406c87081f84a0f8dd77d (patch) | |
tree | 9c4669e471c9969bda59265381b18d2d416db060 /common/alexcpt.cpp | |
parent | 0d14d30808cfe7b9e3413353e3eef8a0f201399a (diff) | |
parent | d3875f333fb6abe2f39d82caca329414871ae53b (diff) |
Merge branch 'v1.23.1'
Resolved Conflicts:
CMakeLists.txt
Diffstat (limited to 'common/alexcpt.cpp')
-rw-r--r-- | common/alexcpt.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common/alexcpt.cpp b/common/alexcpt.cpp deleted file mode 100644 index 5055e34f..00000000 --- a/common/alexcpt.cpp +++ /dev/null @@ -1,30 +0,0 @@ - -#include "config.h" - -#include "alexcpt.h" - -#include <cstdio> -#include <cstdarg> - -#include "opthelpers.h" - - -namespace al { - -backend_exception::backend_exception(ALCenum code, const char *msg, ...) : mErrorCode{code} -{ - va_list args, args2; - va_start(args, msg); - va_copy(args2, args); - int msglen{std::vsnprintf(nullptr, 0, msg, args)}; - if LIKELY(msglen > 0) - { - mMessage.resize(static_cast<size_t>(msglen)+1); - std::vsnprintf(&mMessage[0], mMessage.length(), msg, args2); - mMessage.pop_back(); - } - va_end(args2); - va_end(args); -} - -} // namespace al |