mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Add LinkSound functions and constants; disallow unstable in void
The unstable flag does not make sense in void functions; add warning. Also, new upstream version of builtins.txt with new functions that have been added to fndata.txt.
This commit is contained in:
parent
91b3186245
commit
b13bb6d810
3 changed files with 35 additions and 9 deletions
|
@ -375,7 +375,13 @@ def LoadLibrary(builtins = None, fndata = None):
|
|||
elif match_flag.group(4):
|
||||
flag = match_flag.group(4).lower()
|
||||
if flag == 'unstable':
|
||||
functions[curr_fn]['uns'] = True
|
||||
if functions[curr_fn]['Type'] is None:
|
||||
warning(u"unstable does not make sense"
|
||||
" with void function, in line %d,"
|
||||
" function %s. Omitting flag."
|
||||
% (linenum, curr_fn))
|
||||
else:
|
||||
functions[curr_fn]['uns'] = True
|
||||
else:
|
||||
functions[curr_fn][flag] = True
|
||||
elif match_flag.group(5):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue