ig-memtrace icon indicating copy to clipboard operation
ig-memtrace copied to clipboard

Add default (empty) definitions when MEMTRACE_ENABLE is false

Open multisample opened this issue 5 years ago • 0 comments
trafficstars

We have been using memtrace a bit and one thing would be nice is...

When MEMTRACE_ENABLE is false, that the functions are defined to be empty (HeapCreate can just return 0); That way we don't have to litter ifdefs in code when disabling memtrace, it just compiles out.

Would you be opposed to a PR with that 'functionality' added ?

multisample avatar Jan 24 '20 15:01 multisample