3#include <kindlebt/compat_ace_shims.h>
13#define ACE_MODULE_BT 33
15#define ACE_ALLOC_BUFFER_GENERIC 0
17typedef void (*aceAlloc_free_fn_t)(int, int,
void*);
18void shadow_aceAlloc_free(
void* p) {
19 static aceAlloc_free_fn_t api = NULL;
20 static bool initialized =
false;
23 api = (aceAlloc_free_fn_t)dlsym(RTLD_DEFAULT,
"aceAlloc_free");
29 "[%s()]: couldn't match aceAlloc_free symbol. This is not supposed to happen", __func__
34 return api(ACE_MODULE_BT, ACE_ALLOC_BUFFER_GENERIC, p);