mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Use "coroutine suspension point" consistently.
This commit is contained in:
1 parent
d83cf7f3d5
commit
e7873b5ca4
8 files changed
+136
-130
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user