mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
shader: Reword
This commit is contained in:
parent
f61a916e4a
commit
41d4fc288b
@ -379,7 +379,7 @@ func (cs *compileState) parseStmt(block *block, fname string, stmt ast.Stmt, inP
|
|||||||
|
|
||||||
case *ast.ReturnStmt:
|
case *ast.ReturnStmt:
|
||||||
if len(stmt.Results) != len(outParams) {
|
if len(stmt.Results) != len(outParams) {
|
||||||
// TODO: Implenet multiple-context.
|
// TODO: Implenet multiple-value context.
|
||||||
cs.addError(stmt.Pos(), fmt.Sprintf("the number of returning variables must be %d but %d", len(outParams), len(stmt.Results)))
|
cs.addError(stmt.Pos(), fmt.Sprintf("the number of returning variables must be %d but %d", len(outParams), len(stmt.Results)))
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
@ -394,7 +394,7 @@ func (cs *compileState) parseStmt(block *block, fname string, stmt ast.Stmt, inP
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if len(exprs) > 1 {
|
if len(exprs) > 1 {
|
||||||
cs.addError(r.Pos(), "multiple-context with return is not implemented yet")
|
cs.addError(r.Pos(), "multiple-value context with return is not implemented yet")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user