|
|
|
|
|
|
void *buf = a
in some_callback does not work. Do you have a better idea?
|
|
my_mempool_free(data)
, the program crashed, so this doesn't work.When I tried to do something like my_mempool_free(data), the program crashed, so this doesn't work. |
assert(buf_for_obj == a);
in line 4 on your allocator code to check for this. It really should be the case!