diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-05-30 15:35:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-30 15:35:21 +0200 |
| commit | 2bd14a389008b87d24706801fb5e40141d928087 (patch) | |
| tree | 5fddaf955ca90f163e5c1aeb33101f236258c9b2 /sokol_audio.h | |
| parent | e79c1e55ace947a41fa55fcc1aa79570c05b069e (diff) | |
Language bindings: fix new allocator callbacks (#671)
* remove typedef indirection for allocator callback functions
* language bindings: fix allocator bindings
* language bindings: replace FIXMEs and ??? with actual errors
Diffstat (limited to 'sokol_audio.h')
| -rw-r--r-- | sokol_audio.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sokol_audio.h b/sokol_audio.h index 8c3585ff..7e60ba0f 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -453,12 +453,9 @@ extern "C" { alloc and free function must be provided (e.g. it's not valid to override one function but not the other). */ -typedef void*(*saudio_malloc)(size_t size, void* user_data); -typedef void(*saudio_free)(void* ptr, void* user_data); - typedef struct saudio_allocator { - saudio_malloc alloc; - saudio_free free; + void* (*alloc)(size_t size, void* user_data); + void (*free)(void* ptr, void* user_data); void* user_data; } saudio_allocator; |