-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stb_ds: Fix arrfree when custom allocators are used. #1228
base: master
Are you sure you want to change the base?
Conversation
Originally STBDS_FREE macro was used directly in arrfree definition, this leads to invalid replacement in case custom realloc and free are specified and arrfree is not used in "implementation" unit.
I don't see any harm in the change, but I don't understand the purpose, as arrfreef is not meant to be replaceable. What is the failure mode? |
Maybe I used it wrong, my configuration looks like this:
Now when I use |
oh, yes. this was fixed before, but i guess it got lost? https://github.com/nothings/stb/pull/1144/files |
hmm seems to be lost, or not being present in master Line 551 in af1a5bc
|
yep, it's clear from the diff for your PR (in the "files changed" tab) that it's missing now |
Can this be merged? |
yes, it will be, sorry, i don't update very often since the pandemic started |
Originally STBDS_FREE macro was used directly in arrfree definition,
this leads to invalid replacement in case custom realloc and free
are specified and arrfree is not used in "implementation" unit.