Skip to content

Add allocators to stb_include - #2004

Open
anthofoxo wants to merge 2 commits into
nothings:masterfrom
anthofoxo:stb_include_allocators
Open

anthofoxo wants to merge 2 commits into
nothings:masterfrom
anthofoxo:stb_include_allocators

Conversation

@anthofoxo

@anthofoxo anthofoxo commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Additions:

  • Add macros to stb_include to allow for custom allocation.
    Allows us to track or change the allocation method.
  • Add stb_include_free to free allocations from stb_include_xxx.
    Allows us to free memory without needing to redefine the allocation macros outside of the implementation.

Documentation is appropriately updated where needed.

Additionally the PR for const-correctness for stb_include (#1336) would be a good change to merge first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants