Infrastructure: Move nesting counters, etc., to base class.
This lets all languages share the same definitions.
This commit is contained in:
parent
b4d46627cb
commit
9b2531ba23
6 changed files with 33 additions and 32 deletions
|
|
@ -2777,7 +2777,7 @@ jump_statement
|
|||
if (parseContext.currentFunctionType->getBasicType() != EbtVoid)
|
||||
parseContext.error($1.loc, "non-void function must return a value", "return", "");
|
||||
if (parseContext.inMain)
|
||||
parseContext.postMainReturn = true;
|
||||
parseContext.postEntryPointReturn = true;
|
||||
}
|
||||
| RETURN expression SEMICOLON {
|
||||
$$ = parseContext.handleReturnValue($1.loc, $2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue