From 6b9b875d6f256c659762073a227032f7e7fcbc02 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 May 2023 17:53:48 -0700 Subject: Implement direct functions for the listener and events --- al/direct_defs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'al/direct_defs.h') diff --git a/al/direct_defs.h b/al/direct_defs.h index be92e759..c36211ae 100644 --- a/al/direct_defs.h +++ b/al/direct_defs.h @@ -25,6 +25,12 @@ R AL_API Name(T1 a, T2 b, T3 c) START_API_FUNC \ return Name##Direct(GetContextRef().get(), a, b, c); \ } END_API_FUNC +#define DECL_FUNC4(R, Name, T1, T2, T3, T4) \ +R AL_API Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \ +{ \ + return Name##Direct(GetContextRef().get(), a, b, c, d); \ +} END_API_FUNC + #define DECL_FUNC5(R, Name, T1, T2, T3, T4, T5) \ R AL_API Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \ { \ -- cgit v1.2.3