diff options
author | Chris Robinson <[email protected]> | 2014-03-22 00:28:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-22 00:28:55 -0700 |
commit | d8bfd12d313372830f0e0b34fafcaa244395cf3c (patch) | |
tree | 14f4a3fe6e30380d5aded77969c59bf74fc8ca94 /Alc/backends/base.h | |
parent | 0a030c2bd91a0f7c94ce310ea4b03c6a923463b9 (diff) |
Use a void* for the backend Delete method param
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r-- | Alc/backends/base.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h index 003a3692..de5809ca 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -42,7 +42,7 @@ struct ALCbackendVtable { void (*const lock)(ALCbackend*); void (*const unlock)(ALCbackend*); - void (*const Delete)(ALCbackend*); + void (*const Delete)(void*); }; #define DECLARE_ALCBACKEND_VTABLE(T) \ @@ -60,7 +60,8 @@ DECLARE_THUNK(T, ALCbackend, ALCuint, availableSamples) \ DECLARE_THUNK(T, ALCbackend, ALint64, getLatency) \ DECLARE_THUNK(T, ALCbackend, void, lock) \ DECLARE_THUNK(T, ALCbackend, void, unlock) \ -DECLARE_THUNK(T, ALCbackend, void, Delete) \ +static void T##_ALCbackend_Delete(void *ptr) \ +{ T##_Delete(STATIC_UPCAST(T, ALCbackend, ptr)); } \ \ DECLARE_ALCBACKEND_VTABLE(T) = { \ T##_ALCbackend_Destruct, \ |