aboutsummaryrefslogtreecommitdiffstats
path: root/al/direct_defs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-23 01:54:46 -0700
committerChris Robinson <[email protected]>2023-05-23 01:54:46 -0700
commit85c82693e89a76f17257a2ef8256ca22e5192289 (patch)
tree35119a7242d3e8f4ea99262e8ec92a5929d7b758 /al/direct_defs.h
parentb5da8485c2c01ec4039e0d15d03879dbc45f6b88 (diff)
Use the macros to declare the indirect context thunks
Diffstat (limited to 'al/direct_defs.h')
-rw-r--r--al/direct_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/al/direct_defs.h b/al/direct_defs.h
index d8946eb4..7526b611 100644
--- a/al/direct_defs.h
+++ b/al/direct_defs.h
@@ -116,4 +116,12 @@ R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) noexcept \
return Name##Direct##Ext(context.get(), a, b, c, d, e, f); \
}
+#define DECL_FUNCEXT8(R, Name,Ext, T1, T2, T3, T4, T5, T6, T7, T8) \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f, T7 g, T8 h) noexcept \
+{ \
+ auto context = GetContextRef(); \
+ if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
+ return Name##Direct##Ext(context.get(), a, b, c, d, e, f, g, h); \
+}
+
#endif /* AL_DIRECT_DEFS_H */