Skip to content

new/delete operator macro hooks #1205

@sagaceilo

Description

@sagaceilo

Some loose idea.

We have this new-delete include file that implements all possible functions. Would be cool to add some macros inside, that by default would map to nothing but allow to define them before including header and hook calls to Tracy for example ( TracyAlloc(ptr, size) TracyFree(ptr) etc ).
This way users would not need to write custom new/delete overrides and updating Mimalloc will not override any such custom modyficatjons in this file.

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