mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Allow #pragma OPT inline
This commit is contained in:
parent
c5fd4932f1
commit
574f92d08e
3 changed files with 6 additions and 1 deletions
|
@ -405,6 +405,9 @@ class parser(object):
|
||||||
if option == 'funcoverride':
|
if option == 'funcoverride':
|
||||||
self.funcoverride = value
|
self.funcoverride = value
|
||||||
|
|
||||||
|
if option == 'inline':
|
||||||
|
self.enable_inline = value
|
||||||
|
|
||||||
def ProcessDirective(self, directive):
|
def ProcessDirective(self, directive):
|
||||||
"""Process a given preprocessor directive during parsing."""
|
"""Process a given preprocessor directive during parsing."""
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#pragma OPT inline
|
||||||
|
|
||||||
f1() inline
|
f1() inline
|
||||||
{
|
{
|
||||||
llOwnerSay("f1");
|
llOwnerSay("f1");
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
main.py -y -O clear,inline -
|
main.py -y -O clear,processpre -
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue