aboutsummaryrefslogtreecommitdiffstats
path: root/al/eax
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-16 09:48:54 -0800
committerChris Robinson <[email protected]>2022-12-16 10:03:39 -0800
commit84cfef8513b88068e8ef66223d09b6c48d35caad (patch)
tree1dd3c6dfd8389e22f67fe7c5e03a145d46e5e8a8 /al/eax
parent8b806c07d716db41e0a463d455cf1a913b933a0f (diff)
Avoid inlining certain exception functions
Diffstat (limited to 'al/eax')
-rw-r--r--al/eax/exception.cpp13
-rw-r--r--al/eax/exception.h17
2 files changed, 10 insertions, 20 deletions
diff --git a/al/eax/exception.cpp b/al/eax/exception.cpp
index 3b319648..435e7442 100644
--- a/al/eax/exception.cpp
+++ b/al/eax/exception.cpp
@@ -6,17 +6,14 @@
#include <string>
-EaxException::EaxException(
- const char* context,
- const char* message)
- :
- std::runtime_error{make_message(context, message)}
+EaxException::EaxException(const char *context, const char *message)
+ : std::runtime_error{make_message(context, message)}
{
}
+EaxException::~EaxException() = default;
-std::string EaxException::make_message(
- const char* context,
- const char* message)
+
+std::string EaxException::make_message(const char *context, const char *message)
{
const auto context_size = (context ? std::string::traits_type::length(context) : 0);
const auto has_contex = (context_size > 0);
diff --git a/al/eax/exception.h b/al/eax/exception.h
index 9a7acf71..3ae88cdc 100644
--- a/al/eax/exception.h
+++ b/al/eax/exception.h
@@ -6,19 +6,12 @@
#include <string>
-class EaxException :
- public std::runtime_error
-{
-public:
- EaxException(
- const char* context,
- const char* message);
-
+class EaxException : public std::runtime_error {
+ static std::string make_message(const char *context, const char *message);
-private:
- static std::string make_message(
- const char* context,
- const char* message);
+public:
+ EaxException(const char *context, const char *message);
+ ~EaxException() override;
}; // EaxException