mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Follow-up to 2f4f403
(lslcalc support)
This commit is contained in:
parent
7fa691ead7
commit
9879d5f68b
1 changed files with 3 additions and 1 deletions
|
@ -425,7 +425,8 @@ class outscript(object):
|
|||
return ret + ')\n' + self.OutCode(child[0])
|
||||
|
||||
if nt == 'EXPR':
|
||||
return self.dent() + self.OutExpr(child[0]) + ';\n'
|
||||
return self.dent() + self.OutExpr(child[0]) + (
|
||||
';\n' if not self.lslcalc else '')
|
||||
|
||||
if nt == 'LAMBDA':
|
||||
return ''
|
||||
|
@ -443,6 +444,7 @@ class outscript(object):
|
|||
self.optsigns = self.optimize and 'optsigns' in options
|
||||
self.optfloats = self.optimize and 'optfloats' in options
|
||||
self.foldconst = self.optimize and 'constfold' in options
|
||||
self.lslcalc = 'lslcalc' in options
|
||||
|
||||
self.warntabs = 'warntabs' in options
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue