-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
When writing my own c utilities library, I found using a (zig inspired) custom allocator system to be really useful. It lets you easily convert between using a leak checking allocator, a fixed buffer allocator, arena allocator, normal stdlib malloc, etc... really easily.
Example of what such an allocator interface looks like: https://github.com/VisenDev/pimbs/blob/master/src/allocator.h
From my understanding, stc currently only supports basic heap allocation. Supporting some sort of allocator interface like this would make it really easy for users to have much more fine grained control over memory.
Making this issue to see if this idea was of any interest to the stc devs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels