Skip to content

request: custom allocator support #109

@jwdevel

Description

@jwdevel

Internally, kaguya uses a lot of std::string, std::vector, and such, when sending data between C++ and Lua.

I would like to be able to customize the allocator used for that memory.
Currently, I have to hook the system-wide malloc/free functions, which is rather brittle.

Note: this is not the Lua allocator (for inside-the-VM allocations), which is already customizable via the State constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions