aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.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_debugtext.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_debugtext.h')
-rw-r--r--util/sokol_debugtext.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 99524cc5..0219bbc3 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -537,12 +537,9 @@ typedef struct sdtx_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*(*sdtx_malloc_t)(size_t size, void* user_data);
-typedef void(*sdtx_free_t)(void* ptr, void* user_data);
-
typedef struct sdtx_allocator_t {
- sdtx_malloc_t alloc;
- sdtx_free_t free;
+ void* (*alloc)(size_t size, void* user_data);
+ void (*free)(void* ptr, void* user_data);
void* user_data;
} sdtx_allocator_t;