aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_gl.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-05-30 15:35:21 +0200
committerGitHub <noreply@github.com>2022-05-30 15:35:21 +0200
commit2bd14a389008b87d24706801fb5e40141d928087 (patch)
tree5fddaf955ca90f163e5c1aeb33101f236258c9b2 /util/sokol_gl.h
parente79c1e55ace947a41fa55fcc1aa79570c05b069e (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 'util/sokol_gl.h')
-rw-r--r--util/sokol_gl.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/sokol_gl.h b/util/sokol_gl.h
index 6c35eac1..5f8e565c 100644
--- a/util/sokol_gl.h
+++ b/util/sokol_gl.h
@@ -669,12 +669,9 @@ typedef struct sgl_context_desc_t {
alloc and free function must be provided (e.g. it's not valid to
override one function but not the other).
*/
-typedef void*(*sgl_malloc_t)(size_t size, void* user_data);
-typedef void(*sgl_free_t)(void* ptr, void* user_data);
-
typedef struct sgl_allocator_t {
- sgl_malloc_t alloc;
- sgl_free_t free;
+ void* (*alloc)(size_t size, void* user_data);
+ void (*free)(void* ptr, void* user_data);
void* user_data;
} sgl_allocator_t;