mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Make functions unstable by default, for safety.
That ensures that if there's no data about a function, it is not optimizable.
This commit is contained in:
parent
ee8c2cde98
commit
cdacc45bb0
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ def LoadLibrary(builtins = None, fndata = None):
|
|||
% (linenum, ubuiltins, uname))
|
||||
del uname
|
||||
fn = getattr(lslfuncs, name, None)
|
||||
functions[name] = {'Kind':'f', 'Type':typ,
|
||||
functions[name] = {'Kind':'f', 'Type':typ, 'uns':True,
|
||||
'ParamTypes':args, 'NeedsData':True}
|
||||
if fn is not None:
|
||||
functions[name]['Fn'] = fn
|
||||
|
@ -316,7 +316,7 @@ def LoadLibrary(builtins = None, fndata = None):
|
|||
# passed all tests
|
||||
curr_fn = name
|
||||
skipping = False
|
||||
del functions[name]['NeedsData']
|
||||
del functions[name]['NeedsData'], functions[name]['uns']
|
||||
|
||||
else:
|
||||
match_flag = parse_flag_re.search(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue