Hi all, I wrote the following functions to help catch memory issues in my software (as there were a few I simply could not find but knew were there), its working great and I caught some stuff with it, but I am wondering if there are any obvious improvements I could do to it to improve its error catching capability.
Regarding test_magic, the idea is that funciton is called in a loop (e.g. renderloop) and if stats is set to true it prints out all pointers currently assigned and their initialization location