Skip to content

Commit e05b5fd

Browse files
committed
xrCore: Inline control moved to platform-dependent code.
1 parent 5066e3e commit e05b5fd

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/xrCore/Platform.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919
#define XR_EXPORT __declspec(dllexport)
2020
#define XR_IMPORT __declspec(dllimport)
2121

22+
// inline control - redefine to use compiler's heuristics ONLY
23+
// it seems "IC" is misused in many places which cause code-bloat
24+
// ...and VC7.1 really don't miss opportunities for inline :)
25+
#ifdef _EDITOR
26+
# define __forceinline inline
27+
#endif
28+
#define _inline inline
29+
#define __inline inline
30+
#define IC inline
31+
#define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
32+
#ifdef _EDITOR
33+
# define ICN
34+
#else
35+
# define ICN __declspec (noinline)
36+
#endif
37+
2238
#ifdef __BORLANDC__
2339
#include <vcl.h>
2440
#include <mmsystem.h>

src/xrCore/xrCore.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,6 @@
9393
#endif
9494
#endif
9595

96-
// inline control - redefine to use compiler's heuristics ONLY
97-
// it seems "IC" is misused in many places which cause code-bloat
98-
// ...and VC7.1 really don't miss opportunities for inline :)
99-
#ifdef _EDITOR
100-
# define __forceinline inline
101-
#endif
102-
#define _inline inline
103-
#define __inline inline
104-
#define IC inline
105-
#define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
106-
#ifdef _EDITOR
107-
# define ICN
108-
#else
109-
# define ICN __declspec (noinline)
110-
#endif
111-
11296
#ifndef DEBUG
11397
#pragma inline_depth ( 254 )
11498
#pragma inline_recursion( on )

0 commit comments

Comments
 (0)