aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-07-02 13:21:48 -0700
committerChris Robinson <[email protected]>2023-07-02 13:21:48 -0700
commit65d0196db6f09292c3eb3c106d6ca543ad937e82 (patch)
tree042aa7c0c10a2a0bbdd6a067b2778278c90fefc6 /alc/alc.cpp
parent548f7ad80abc253a38171b7e4eb1c84a6b179a41 (diff)
Add a function to set a callback for log messages
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 0e1dc637..d36f1891 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1846,6 +1846,11 @@ ContextRef VerifyContext(ALCcontext *context)
} // namespace
+FORCE_ALIGN void ALC_APIENTRY alsoft_set_log_callback(LPALSOFTLOGCALLBACK callback, void *userptr) noexcept
+{
+ al_set_log_callback(callback, userptr);
+}
+
/** Returns a new reference to the currently active context for this thread. */
ContextRef GetContextRef(void)
{