|
1 | | -{ *********************************************************************************** } |
2 | | -{ * SimpleBaseLib Library * } |
3 | | -{ * Copyright (c) 2018 - 2019 Ugochukwu Mmaduekwe * } |
4 | | -{ * Github Repository <https://github.com/Xor-el> * } |
| 1 | +{ * ************************************************************************ * } |
| 2 | +{ * SimpleBaseLib Library * } |
| 3 | +{ * Author - Ugochukwu Mmaduekwe * } |
| 4 | +{ * Github Repository <https://github.com/Xor-el> * } |
| 5 | +{ * * } |
| 6 | +{ * Distributed under the MIT software license, see the accompanying file * } |
| 7 | +{ * LICENSE * } |
| 8 | +{ * or visit http://www.opensource.org/licenses/mit-license. * } |
| 9 | +{ * * } |
| 10 | +{ * ************************************************************************ * } |
5 | 11 |
|
6 | | -{ * Distributed under the MIT software license, see the accompanying file LICENSE * } |
7 | | -{ * or visit http://www.opensource.org/licenses/mit-license.php. * } |
| 12 | +(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
8 | 13 |
|
9 | | -{ * ******************************************************************************* * } |
10 | 14 |
|
11 | | -(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
12 | | - |
13 | | -{$DEFINE DELPHI} |
14 | | - |
15 | | -(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
| 15 | +{---------------------------- Compiler Family Switch --------------------------} |
16 | 16 | {$IFDEF FPC} |
17 | | -{$I SimpleBaseLibHelper.inc} // Had to Include this Since Delphi Does not allow "FPC_FULLVERSION" to Compile. |
18 | | -{$UNDEF DELPHI} |
19 | | -{$MODE delphi} |
20 | | - |
21 | | -{$DEFINE USE_UNROLLED_VARIANT} |
| 17 | + {$I SimpleBaseLibFPC.inc} // FPC-specific settings |
| 18 | +{$ELSE} |
| 19 | + {$DEFINE DELPHI} |
| 20 | + {$I ../../SimpleBaseLib/src/Include/SimpleBaseLibDelphi.inc} // Delphi-specific settings |
| 21 | +{$ENDIF} |
22 | 22 |
|
23 | | -// Disable Overflow and RangeChecks. |
| 23 | +{-------------------------- Common Compiler Settings --------------------------} |
| 24 | +{$SCOPEDENUMS ON} |
24 | 25 | {$OVERFLOWCHECKS OFF} |
25 | 26 | {$RANGECHECKS OFF} |
26 | | - |
27 | | -// Enable Pointer Math |
28 | 27 | {$POINTERMATH ON} |
29 | | - |
30 | | -// Disable Warnings and Hints. |
31 | 28 | {$WARNINGS OFF} |
32 | 29 | {$HINTS OFF} |
33 | | -{$NOTES OFF} |
34 | | - |
35 | | -// Optimizations |
36 | | -{$OPTIMIZATION LEVEL3} |
37 | | -{$OPTIMIZATION PEEPHOLE} |
38 | | -{$OPTIMIZATION REGVAR} |
39 | | -{$OPTIMIZATION LOOPUNROLL} |
40 | | -{$OPTIMIZATION STRENGTH} |
41 | | -{$OPTIMIZATION CSE} |
42 | | -{$OPTIMIZATION DFA} |
43 | | - |
44 | | -{$IFDEF CPUI386} |
45 | | - {$OPTIMIZATION USEEBP} |
46 | | -{$ENDIF} |
47 | | - |
48 | | -{$IFDEF CPUX86_64} |
49 | | - {$OPTIMIZATION USERBP} |
50 | | -{$ENDIF} |
51 | | - |
52 | | -{$ENDIF FPC} |
53 | | - |
54 | | -(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
55 | | - |
56 | | -{$IFDEF DELPHI} |
57 | | - |
58 | | -{$DEFINE USE_UNROLLED_VARIANT} |
59 | | - |
60 | | -// This option is needed to enable code browsing (aka Ctrl+Click) |
61 | | -// It does not affect the binary size or generated code |
62 | | -{$DEFINITIONINFO ON} |
63 | | - |
64 | | -// Disable Overflow and RangeChecks. |
65 | | -{$OVERFLOWCHECKS OFF} |
66 | | -{$RANGECHECKS OFF} |
67 | | - |
68 | | - // Enable Pointer Math |
69 | | -{$POINTERMATH ON} |
70 | | - |
71 | | -// Disable String Checks |
72 | | -{$STRINGCHECKS OFF} |
73 | | - |
74 | | -// Disable Duplicate Constructor Warnings |
75 | | -{$WARN DUPLICATE_CTOR_DTOR OFF} |
76 | | - |
77 | | - // XE3 and Above |
78 | | -{$IF CompilerVersion >= 24.0} |
79 | | - {$DEFINE DELPHIXE3_UP} |
80 | | - {$LEGACYIFEND ON} |
81 | | - {$ZEROBASEDSTRINGS OFF} |
82 | | -{$IFEND} |
83 | | - |
84 | | - // 2010 and Above |
85 | | -{$IF CompilerVersion >= 21.0} |
86 | | - {$DEFINE DELPHI2010_UP} |
87 | | -{$IFEND} |
88 | | - |
89 | | - // XE and Above |
90 | | -{$IF CompilerVersion >= 22.0} |
91 | | - {$DEFINE DELPHIXE_UP} |
92 | | -{$IFEND} |
93 | | - |
94 | | - // 2010 and Above |
95 | | -{$IFNDEF DELPHI2010_UP} |
96 | | - {$MESSAGE ERROR 'This Library requires Delphi 2010 or higher.'} |
97 | | -{$ENDIF} |
98 | | - |
99 | | - |
100 | | -{$ENDIF DELPHI} |
101 | | - |
102 | | -(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
103 | 30 |
|
| 31 | +(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *) |
0 commit comments