mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +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")
|
g.writes("}\n\n")
|
||||||
|
if g.perFunc.tempW != g.perFunc.tempR {
|
||||||
|
return fmt.Errorf("internal error: temporary variable count out of sync")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user