1 // compiler options, common for all game modules
2 {$MODE OBJFPC}
4 {$MODESWITCH ADVANCEDRECORDS+}
5 {$MODESWITCH ALLOWINLINE+}
6 {$MODESWITCH ANSISTRINGS+} // Allow use of ansistrings.
7 {$MODESWITCH AUTODEREF+} // Automatic (silent) dereferencing of typed pointers.
8 {$MODESWITCH CLASS+}
9 {$MODESWITCH CLASSICPROCVARS+} // Use classical procedural variables.
10 {$MODESWITCH DEFAULTPARAMETERS+} // Allow use of default parameter values.
11 {$MODESWITCH DUPLICATELOCALS-} // Allow local variables in class methods to have the same names as properties of the class.
12 {$MODESWITCH EXCEPTIONS+}
13 {$MODESWITCH HINTDIRECTIVE+} // Support the hint directives (deprecated, platform etc.)
14 {$MODESWITCH INITFINAL+} // Allow use of Initialization and Finalization
15 {.$MODESWITCH ISOUNARYMINUS-} // Unary minus as required by ISO pascal.
16 {$MODESWITCH MACPROCVARS-} // Use mac-style procedural variables.
17 {$MODESWITCH NESTEDCOMMENTS-}
18 {$MODESWITCH NESTEDPROCVARS+}
19 {$MODESWITCH OBJPAS+}
20 {$MODESWITCH OUT+} // Allow use of the out parameter type.
21 {$MODESWITCH PCHARTOSTRING+}
22 {$MODESWITCH POINTERTOPROCVAR+} // Allow silent conversion of pointers to procedural variables.
23 {$MODESWITCH PROPERTIES+}
24 {$MODESWITCH REPEATFORWARD+} // Implementation and Forward declaration must match completely.
25 {$MODESWITCH RESULT+}
26 {$MODESWITCH TYPEHELPERS+} // Allow the use of type helpers.
27 {$MODESWITCH UNICODESTRINGS-}
30 {$ASSERTIONS ON}
31 {$BITPACKING OFF}
32 {$BOOLEVAL OFF}
33 {$COPERATORS ON}
34 {$EXTENDEDSYNTAX ON}
35 {$IFDEF CPU32}
36 {$FPUTYPE SSE}
37 {$ENDIF CPU32}
38 {$GOTO ON}
39 {$IEEEERRORS OFF}
40 {$INLINE ON}
41 {$LONGSTRINGS ON}
42 {$MACRO OFF}
43 {$OBJECTCHECKS OFF}
44 {$OVERFLOWCHECKS OFF}
45 {$POINTERMATH ON}
46 {$RANGECHECKS OFF}
47 {$SAFEFPUEXCEPTIONS OFF}
48 {$SCOPEDENUMS ON} // this may be changed later
49 {$SMARTLINK ON}
50 {$TYPEDADDRESS ON}
51 {$TYPEINFO ON}
52 {$VARSTRINGCHECKS OFF}
54 {$S-} // disable stack checking
55 {$MMX-} // get lost, mmx
57 {$IF DEFINED(D2F_DEBUG)}
58 {$STACKFRAMES ON}
59 {$HINTS OFF}
60 {$ELSE}
61 {$STACKFRAMES OFF}
62 {$HINTS OFF}
63 {$DEFINE D2F_MORE_OPTIM}
64 {$ENDIF}
65 {$WARNINGS ON}
66 {$NOTES ON}
68 {$IF DEFINED(D2F_DEBUG_OPTIM) or DEFINED(D2F_MORE_OPTIM)}
69 {$OPTIMIZATION DEADVALUES}
70 {$OPTIMIZATION CONSTPROP}
71 {$OPTIMIZATION DEADSTORE}
72 {$ENDIF}
74 {$IFDEF WIN32}
75 {$IFNDEF MSWINDOWS}
76 {$DEFINE MSWINDOWS}
77 {$ENDIF}
78 {$ENDIF}
80 {$IFDEF MSWINDOWS}
81 {$IFNDEF WINDOWS}
82 {$DEFINE WINDOWS}
83 {$ENDIF WINDOWS}
84 {$ENDIF}