mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Switch the predefined macros to variadic, to allow commas.
This commit is contained in:
parent
aea101a823
commit
226f382c4f
1 changed files with 9 additions and 4 deletions
13
main.py
13
main.py
|
@ -284,10 +284,15 @@ def main():
|
||||||
preproc_cmdline = [
|
preproc_cmdline = [
|
||||||
'cpp', '-undef', '-x', 'c', '-std=c99', '-nostdinc', '-trigraphs',
|
'cpp', '-undef', '-x', 'c', '-std=c99', '-nostdinc', '-trigraphs',
|
||||||
'-dN', '-fno-extended-identifiers',
|
'-dN', '-fno-extended-identifiers',
|
||||||
'-Dinteger(x)=((integer)(x))', '-Dfloat(x)=((float)(x))',
|
'-Dinteger(...)=((integer)(__VA_ARGS__))',
|
||||||
'-Dstring(x)=((string)(x))', '-Dkey(x)=((key)(x))',
|
'-Dfloat(...)=((float)(__VA_ARGS__))',
|
||||||
'-Drotation(x)=((rotation)(x))', '-Dquaternion(x)=((quaternion)(x))',
|
'-Dstring(...)=((string)(__VA_ARGS__))',
|
||||||
'-Dvector(x)=((vector)(x))', '-Dlist(x)=((list)(x))']
|
'-Dkey(...)=((key)(__VA_ARGS__))',
|
||||||
|
'-Drotation(...)=((rotation)(__VA_ARGS__))',
|
||||||
|
'-Dquaternion(...)=((quaternion)(__VA_ARGS__))',
|
||||||
|
'-Dvector(...)=((vector)(__VA_ARGS__))',
|
||||||
|
'-Dlist(...)=((list)(__VA_ARGS__))'
|
||||||
|
]
|
||||||
preproc = False
|
preproc = False
|
||||||
script_header = False
|
script_header = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue