Skip to content

Commit

Permalink
xrCore: Inline control moved to platform-dependent code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent 5066e3e commit e05b5fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions src/xrCore/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
#define XR_EXPORT __declspec(dllexport)
#define XR_IMPORT __declspec(dllimport)

// inline control - redefine to use compiler's heuristics ONLY
// it seems "IC" is misused in many places which cause code-bloat
// ...and VC7.1 really don't miss opportunities for inline :)
#ifdef _EDITOR
# define __forceinline inline
#endif
#define _inline inline
#define __inline inline
#define IC inline
#define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
#ifdef _EDITOR
# define ICN
#else
# define ICN __declspec (noinline)
#endif

#ifdef __BORLANDC__
#include <vcl.h>
#include <mmsystem.h>
Expand Down
16 changes: 0 additions & 16 deletions src/xrCore/xrCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,6 @@
#endif
#endif

// inline control - redefine to use compiler's heuristics ONLY
// it seems "IC" is misused in many places which cause code-bloat
// ...and VC7.1 really don't miss opportunities for inline :)
#ifdef _EDITOR
# define __forceinline inline
#endif
#define _inline inline
#define __inline inline
#define IC inline
#define ICF __forceinline // !!! this should be used only in critical places found by PROFILER
#ifdef _EDITOR
# define ICN
#else
# define ICN __declspec (noinline)
#endif

#ifndef DEBUG
#pragma inline_depth ( 254 )
#pragma inline_recursion( on )
Expand Down

0 comments on commit e05b5fd

Please sign in to comment.