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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user