mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-30 14:31:04 +00:00
Add the predefined macro __ORCAC_HAS_LONG_LONG__.
This allows headers or other code to test for the presence of this feature.
This commit is contained in:
parent
b4604e079e
commit
6bb91d20e5
11
Scanner.pas
11
Scanner.pas
@ -1491,7 +1491,7 @@ if macro^.readOnly then begin {handle special macros}
|
||||
5: begin {__STDC__}
|
||||
token.kind := intConst; {__ORCAC__}
|
||||
token.numString := @oneStr; {__STDC_NO_...__}
|
||||
token.class := intConstant;
|
||||
token.class := intConstant; {__ORCAC_HAS_LONG_LONG__}
|
||||
token.ival := 1;
|
||||
oneStr := '1';
|
||||
tokenStart := @oneStr[1];
|
||||
@ -3863,6 +3863,15 @@ mp^.algorithm := 6;
|
||||
bp := pointer(ord4(macros) + hash(mp^.name));
|
||||
mp^.next := bp^;
|
||||
bp^ := mp;
|
||||
new(mp); {__ORCAC_HAS_LONG_LONG__}
|
||||
mp^.name := @'__ORCAC_HAS_LONG_LONG__';
|
||||
mp^.parameters := -1;
|
||||
mp^.tokens := nil;
|
||||
mp^.readOnly := true;
|
||||
mp^.algorithm := 5;
|
||||
bp := pointer(ord4(macros) + hash(mp^.name));
|
||||
mp^.next := bp^;
|
||||
bp^ := mp;
|
||||
new(mp); {__STDC_NO_ATOMICS__}
|
||||
mp^.name := @'__STDC_NO_ATOMICS__';
|
||||
mp^.parameters := -1;
|
||||
|
Loading…
Reference in New Issue
Block a user