Skip to content

Support Lua allocator #13

Closed
Closed
@agladysh

Description

@agladysh

Currently lua-cmsgpack uses malloc. This is not very nice to users who configure Lua state to use their own allocator.

Use lua_getallocf instead: http://www.lua.org/manual/5.1/manual.html#lua_getallocf

Here is an example: https://github.com/agladysh/luabins/blob/master/src/savebuffer.c#L96

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