aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alExtension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alExtension.cpp')
-rw-r--r--OpenAL32/alExtension.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/alExtension.cpp b/OpenAL32/alExtension.cpp
index 3cfc253e..dda2a628 100644
--- a/OpenAL32/alExtension.cpp
+++ b/OpenAL32/alExtension.cpp
@@ -30,8 +30,10 @@
#include "alMain.h"
#include "alcontext.h"
#include "alError.h"
+#include "alexcpt.h"
AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName)
+START_API_FUNC
{
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return AL_FALSE;
@@ -57,16 +59,21 @@ AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName)
return AL_FALSE;
}
+END_API_FUNC
AL_API ALvoid* AL_APIENTRY alGetProcAddress(const ALchar *funcName)
+START_API_FUNC
{
if(!funcName) return nullptr;
return alcGetProcAddress(nullptr, funcName);
}
+END_API_FUNC
AL_API ALenum AL_APIENTRY alGetEnumValue(const ALchar *enumName)
+START_API_FUNC
{
if(!enumName) return static_cast<ALenum>(0);
return alcGetEnumValue(nullptr, enumName);
}
+END_API_FUNC