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

Add option to override behavior of memory functions #2

Open
wjwwood opened this issue May 23, 2018 · 0 comments
Open

Add option to override behavior of memory functions #2

wjwwood opened this issue May 23, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wjwwood
Copy link
Member

wjwwood commented May 23, 2018

Currently you can only get a callback to notify you when a memory function is called, but you have no ability access the arguments to the memory function called nor can you influence whether or not the original memory functions are called or redirect to a different allocator.

A use case for this might be to fail on a specific call to malloc in a test or to completely replace the system allocators in a deployed program.

@wjwwood wjwwood added enhancement New feature or request help wanted Extra attention is needed labels May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant