4coder/custom/4coder_profile_static_disab...

26 lines
505 B
C++
Raw Normal View History

/*
* 4coder_profile_static_disable.cpp - Statically removes all profile posting code
* that follows until the next 4coder_profile_static_enable.cpp
*/
// TOP
#if defined(ProfileBegin)
#undef ProfileBegin
#undef ProfileEnd
#undef ProfileBlock
#undef ProfileScope
#undef ProfileBlockNamed
#undef ProfileScopeNamed
#endif
#define ProfileBegin(T,N)
#define ProfileEnd(T,I)
#define ProfileBlock(T,N)
#define ProfileScope(T,N)
#define ProfileBlockNamed(T,N,M)
#define ProfileScopeNamed(T,N,M)
// BOTTOM