Skip to content

Interest in allocator interface support? #116

@VisenDev

Description

@VisenDev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions