[+] AU_DEBUG_REVERSE_MEMCRUNCH
This commit is contained in:
parent
bd11c0860d
commit
f0aef1f712
@ -25,5 +25,19 @@ namespace Aurora::Debug
|
||||
}
|
||||
};
|
||||
|
||||
#define AU_DEBUG_MEMCRUNCH Aurora::Debug::MemoryCrunch AU_CONCAT(__crunch, __COUNTER__);
|
||||
struct MemoryCrunchCallOut
|
||||
{
|
||||
inline MemoryCrunchCallOut()
|
||||
{
|
||||
DecMemoryCrunch();
|
||||
}
|
||||
|
||||
inline ~MemoryCrunchCallOut()
|
||||
{
|
||||
AddMemoryCrunch();
|
||||
}
|
||||
};
|
||||
|
||||
#define AU_DEBUG_MEMCRUNCH Aurora::Debug::MemoryCrunch AU_CONCAT(__crunch, __COUNTER__);
|
||||
#define AU_DEBUG_REVERSE_MEMCRUNCH Aurora::Debug::MemoryCrunchCallOut AU_CONCAT(__crunch, __COUNTER__);
|
||||
}
|
Loading…
Reference in New Issue
Block a user