We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac374bf commit 49c4efaCopy full SHA for 49c4efa
expr.c
@@ -3595,6 +3595,14 @@ FuncNumResults(AST *functype)
3595
functype = functype->left;
3596
}
3597
if (!IsFunctionType(functype)) {
3598
+ // if this is Spin2, assume it is a void type (there would be
3599
+ // an explicit :1 after it otherwise)
3600
+ if (GetCurrentLang() == LANG_SPIN_SPIN2) {
3601
+ return 0;
3602
+ }
3603
+ // otherwise punt and assume just 1 return type; this works for
3604
+ // many Spin1 functions, and C and BASIC should have proper function
3605
+ // types anyway
3606
return 1; // unknown return type
3607
3608
0 commit comments