Skip to content

Commit 3aa8aca

Browse files
committed
xrCore/Platform: Simplified inline control.
1 parent e05b5fd commit 3aa8aca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/xrCore/Platform.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@
2222
// inline control - redefine to use compiler's heuristics ONLY
2323
// it seems "IC" is misused in many places which cause code-bloat
2424
// ...and VC7.1 really don't miss opportunities for inline :)
25-
#ifdef _EDITOR
26-
# define __forceinline inline
27-
#endif
2825
#define _inline inline
2926
#define __inline inline
3027
#define IC inline
31-
#define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
3228
#ifdef _EDITOR
29+
# define ICF inline
3330
# define ICN
3431
#else
32+
# define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
3533
# define ICN __declspec (noinline)
3634
#endif
3735

0 commit comments

Comments
 (0)