Browse Source

Do not set USEINLINE macro if DISABLE_INLINE macro is set

Pierre Muller 1 year ago
parent
commit
f6a0da71fc
1 changed files with 4 additions and 5 deletions
  1. 4 5
      compiler/fpcdefs.inc

+ 4 - 5
compiler/fpcdefs.inc

@@ -4,6 +4,10 @@
 {$goto on}
 {$goto on}
 {$ifndef DISABLE_INLINE}
 {$ifndef DISABLE_INLINE}
   {$inline on}
   {$inline on}
+  { Inline small functions, but not when EXTDEBUG is used }
+  {$ifndef EXTDEBUG}
+    {$define USEINLINE}
+  {$endif EXTDEBUG}
 {$endif}
 {$endif}
 {$interfaces corba}
 {$interfaces corba}
 
 
@@ -31,11 +35,6 @@
   {$define cpawaremessages}
   {$define cpawaremessages}
 {$endif}
 {$endif}
 
 
-{ Inline small functions, but not when EXTDEBUG is used }
-{$ifndef EXTDEBUG}
-  {$define USEINLINE}
-{$endif EXTDEBUG}
-
 {$ifdef DEBUG_ALL_OPT}
 {$ifdef DEBUG_ALL_OPT}
   { for aopt unit }
   { for aopt unit }
   {$define DEBUG_OPTALLOC}
   {$define DEBUG_OPTALLOC}