aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_profile_static_disable.cpp
blob: ae56fffa8902c067aa93df9e7c75b57fa4663acf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * 4coder_profile_static_disable.cpp - Statically removes all profile posting code
 * that follows until the next 4coder_profile_static_enable.cpp
 */

// TOP

#if defined(ProfileBlock)
#undef ProfileBlock
#undef ProfileScope
#undef ProfileBlockNamed
#undef ProfileScopeNamed

#undef ProfileTLBlock
#undef ProfileTLScope
#undef ProfileTLBlockNamed
#undef ProfileTLScopeNamed

#undef ProfileCloseNow
#endif

#define ProfileBlock(T,N)
#define ProfileScope(T,N)
#define ProfileBlockNamed(T,N,M)
#define ProfileScopeNamed(T,N,M)

#define ProfileTLBlock(T,L,N)
#define ProfileTLScope(T,L,N)
#define ProfileTLBlockNamed(T,L,N,M)
#define ProfileTLScopeNamed(T,L,N,M)

#define ProfileCloseNow(O)

// BOTTOM