Use "coroutine suspension point" consistently.

This commit is contained in:
Nigel Tao committed 2017-07-13 10:46:05 +10:00
1 parent d83cf7f3d5
commit e7873b5ca4
8 files changed
+136 -130

No files matched your search

+1 -1
View File
@@ -468,7 +468,7 @@ func (g *gen) writeStruct(n *a.Struct) error {
// TODO: allow max depth > 1 for recursive coroutines.
const maxDepth = 1
g.writes("struct {\n")
g.writes("uint32_t coro_state;\n")
g.writes("uint32_t coro_susp_point;\n")
if err := g.writeVars(o.Body()); err != nil {
return err
}