aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-10 21:35:33 -0700
committerChris Robinson <[email protected]>2023-05-10 21:35:33 -0700
commite590afe3e4871561527deea5dc9894212e3eb7b9 (patch)
treecf90b2884c3f796df6333a209cce6dfa75f4a67d
parentd2b000c7602bcc337a4f4e5590ef65c1cfcb4cb2 (diff)
Mark some functions noexcept when possible
-rw-r--r--al/buffer.cpp8
-rw-r--r--al/eax/x_ram.h11
2 files changed, 4 insertions, 15 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index 371e586c..08f3bc3c 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -1543,8 +1543,7 @@ BufferSubList::~BufferSubList()
#ifdef ALSOFT_EAX
-FORCE_ALIGN ALboolean AL_APIENTRY EAXSetBufferMode(ALsizei n, const ALuint* buffers, ALint value)
-START_API_FUNC
+FORCE_ALIGN ALboolean AL_APIENTRY EAXSetBufferMode(ALsizei n, const ALuint *buffers, ALint value) noexcept
{
#define EAX_PREFIX "[EAXSetBufferMode] "
@@ -1650,10 +1649,8 @@ START_API_FUNC
#undef EAX_PREFIX
}
-END_API_FUNC
-FORCE_ALIGN ALenum AL_APIENTRY EAXGetBufferMode(ALuint buffer, ALint* pReserved)
-START_API_FUNC
+FORCE_ALIGN ALenum AL_APIENTRY EAXGetBufferMode(ALuint buffer, ALint *pReserved) noexcept
{
#define EAX_PREFIX "[EAXGetBufferMode] "
@@ -1690,6 +1687,5 @@ START_API_FUNC
#undef EAX_PREFIX
}
-END_API_FUNC
#endif // ALSOFT_EAX
diff --git a/al/eax/x_ram.h b/al/eax/x_ram.h
index 438b9916..d10fe697 100644
--- a/al/eax/x_ram.h
+++ b/al/eax/x_ram.h
@@ -25,14 +25,7 @@ constexpr auto AL_STORAGE_HARDWARE_NAME = "AL_STORAGE_HARDWARE";
constexpr auto AL_STORAGE_ACCESSIBLE_NAME = "AL_STORAGE_ACCESSIBLE";
-ALboolean AL_APIENTRY EAXSetBufferMode(
- ALsizei n,
- const ALuint* buffers,
- ALint value);
-
-ALenum AL_APIENTRY EAXGetBufferMode(
- ALuint buffer,
- ALint* pReserved);
-
+ALboolean AL_APIENTRY EAXSetBufferMode(ALsizei n, const ALuint *buffers, ALint value) noexcept;
+ALenum AL_APIENTRY EAXGetBufferMode(ALuint buffer, ALint *pReserved) noexcept;
#endif // !EAX_X_RAM_INCLUDED