diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 13c328e85a2c71cc77397cc5fb72634f27058352..7e14a8bb81ad8745d769c514c47996db1eb6cedb 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
// compiler options, common for all game modules
-{$MODE DELPHI}
+{.$MODE DELPHI}
+{$MODE OBJFPC}
{$MODESWITCH ADVANCEDRECORDS+}
-{$MODESWITCH DUPLICATELOCALS-}
+{$MODESWITCH ALLOWINLINE+}
+{$MODESWITCH ANSISTRINGS+} // Allow use of ansistrings.
+{$MODESWITCH AUTODEREF+} // Automatic (silent) dereferencing of typed pointers.
+{$MODESWITCH CLASS+}
+{$MODESWITCH CLASSICPROCVARS+} // Use classical procedural variables.
+{$MODESWITCH DEFAULTPARAMETERS+} // Allow use of default parameter values.
+{$MODESWITCH DUPLICATELOCALS-} // Allow local variables in class methods to have the same names as properties of the class.
+{$MODESWITCH EXCEPTIONS+}
+{$MODESWITCH HINTDIRECTIVE+} // Support the hint directives (deprecated, platform etc.)
+{$MODESWITCH INITFINAL+} // Allow use of Initialization and Finalization
+{.$MODESWITCH ISOUNARYMINUS-} // Unary minus as required by ISO pascal.
+{$MODESWITCH MACPROCVARS-} // Use mac-style procedural variables.
+{$MODESWITCH NESTEDCOMMENTS-}
{$MODESWITCH NESTEDPROCVARS+}
+{$MODESWITCH OBJPAS+}
+{$MODESWITCH OUT+} // Allow use of the out parameter type.
+{$MODESWITCH PCHARTOSTRING+}
+{$MODESWITCH POINTERTOPROCVAR+} // Allow silent conversion of pointers to procedural variables.
+{$MODESWITCH PROPERTIES+}
+{$MODESWITCH REPEATFORWARD+} // Implementation and Forward declaration must match completely.
+{$MODESWITCH RESULT+}
+{$MODESWITCH TYPEHELPERS+} // Allow the use of type helpers.
{$MODESWITCH UNICODESTRINGS-}
+
{$ASSERTIONS ON}
{$BITPACKING OFF}
{$BOOLEVAL OFF}
{$COPERATORS ON}
{$EXTENDEDSYNTAX ON}
-{$FPUTYPE SSE}
+{$IFDEF CPU32}
+ {$FPUTYPE SSE}
+{$ENDIF CPU32}
{$GOTO ON}
{$IEEEERRORS OFF}
{$INLINE ON}
{$SAFEFPUEXCEPTIONS OFF}
{$SCOPEDENUMS OFF} // this will possibly be changed later
{$SMARTLINK ON}
-{$TYPEDADDRESS OFF}
-{$TYPEINFO OFF}
+{$TYPEDADDRESS ON}
+{$TYPEINFO ON}
{$VARSTRINGCHECKS OFF}
{$S-} // disable stack checking
{$IF DEFINED(D2F_DEBUG)}
{$STACKFRAMES ON}
+ {$HINTS OFF}
{$ELSE}
{$STACKFRAMES OFF}
+ {$HINTS OFF}
+ {$DEFINE D2F_MORE_OPTIM}
{$ENDIF}
+{$WARNINGS ON}
+{$NOTES ON}
+{$IF DEFINED(D2F_DEBUG_OPTIM) or DEFINED(D2F_MORE_OPTIM)}
+ {$OPTIMIZATION DEADVALUES}
+ {$OPTIMIZATION CONSTPROP}
+ {$OPTIMIZATION DEADSTORE}
+{$ENDIF}
{$IFDEF MSWINDOWS}
{$IFNDEF WINDOWS}