-
Notifications
You must be signed in to change notification settings - Fork 3
/
Defs.inc
48 lines (43 loc) · 1008 Bytes
/
Defs.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{$DEFINE UseInline}
{$DEFINE BuildThreadSafe}
{$DEFINE UseGenerics}
{$DEFINE UseMultiBytesNop}
//Define HookInternalFuncs if you want to hook internal functions used by DDL core!
{.$DEFINE HookInternalFuncs}
//----------------------------------------------
{$IFDEF FPC}
{$IFDEF CPU64}
{$IFNDEF CPUX64}
{$DEFINE CPUX64}
{$ENDIF !CPUX64}
{$ENDIF CPU64}
{$ASMMODE INTEL}
{$ENDIF FPC}
{$IFNDEF CPUX64}
{$IFNDEF CPUX86}
{$DEFINE CPUX86}
{$ENDIF !CPUX86}
{$ENDIF !CPUX64}
{$IFDEF DEBUG}
{$R+} // Range check On
{$ENDIF}
{$IFNDEF FPC}
{$IF CompilerVersion >17}
{$DEFINE CanInline}
{$IFEND}
{$IF CompilerVersion >=21}
{$DEFINE GenericsExist }
{$IFEND}
{$IF CompilerVersion >=23}
{$DEFINE DXE2UP }
{$IFEND}
{$IF CompilerVersion >=24}
{$DEFINE DXE3UP }
{$IFEND}
{$ENDIF !FPC}
{$IF DEFINED(UseInline) and DEFINED(CanInline)}
{$DEFINE MustInline}
{$IFEND}
{$IF DEFINED(GenericsExist) and DEFINED(UseGenerics)}
{$DEFINE MustUseGenerics}
{$IFEND}