-
Notifications
You must be signed in to change notification settings - Fork 4
/
SAPOptions.inc
32 lines (23 loc) · 939 Bytes
/
SAPOptions.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
{.$DEFINE SAP_DEBUG} // debug of the MM logic
{.$DEFINE SAP_DEBUG_MEMORY_LEAKS} // memory leaks reporting
{$ASSERTIONS OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$IFDEF SAP_DEBUG}
{$DEFINE SAP_CHECKMAGIC} // check blocks correctness
{$DEFINE SAP_STAT} // turn on statistics calculation
{$OPTIMIZATION OFF}
{$DEBUGINFO ON}
{$ELSE}
{$IFDEF SAP_DEBUG_MEMORY_LEAKS}
{$DEFINE SAP_STAT} // turn on statistics
{$DEFINE SAP_MEMORYLEAKS} // turn on memory leaks checking
{$DEFINE SAP_SHOWCALLSTACK} // show call stack for memory leaks
{$DEFINE SAP_STATIP} // turn on saving IP for allocate calls
{$OPTIMIZATION OFF} // must be turned off for the SAP_STATIP may work
{$ELSE} // normal mode, maximum execution speed
{$OPTIMIZATION ON}
{$DEBUGINFO OFF}
{$STACKFRAMES OFF}
{$ENDIF}
{$ENDIF}