mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Check that every dispensed temp var is used.
This commit is contained in:
1 parent
ce2720fca1
commit
f6501ec2d9
1 file changed
+3
@@ -624,6 +624,9 @@ func (g *gen) writeFuncImpl(n *a.Func) error {
|
||||
}
|
||||
|
||||
g.writes("}\n\n")
|
||||
if g.perFunc.tempW != g.perFunc.tempR {
|
||||
return fmt.Errorf("internal error: temporary variable count out of sync")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user