Skip to content
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

request: custom allocator support #109

Open
jwdevel opened this issue Feb 15, 2024 · 0 comments
Open

request: custom allocator support #109

jwdevel opened this issue Feb 15, 2024 · 0 comments

Comments

@jwdevel
Copy link

jwdevel commented Feb 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant