mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Generate implicit wuffs_base__status for !? funcs
This commit is contained in:
1 parent
2434f0dee5
commit
0482fadf41
2 files changed
+2
-2
No files matched your search
@@ -85,7 +85,7 @@ func (g *gen) writeFuncSignature(b *buffer, n *a.Func, cpp uint32) error {
|
||||
}
|
||||
|
||||
// TODO: write n's return values.
|
||||
if n.Effect().Coroutine() {
|
||||
if n.Effect().Optional() {
|
||||
b.writes("wuffs_base__status ")
|
||||
} else if out := n.Out(); out == nil {
|
||||
// TODO: wuffs_base__empty_struct.
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@ type Effect uint8
|
||||
|
||||
const (
|
||||
EffectImpure = Effect(0x01)
|
||||
EffectOptional = Effect(0x02)
|
||||
EffectOptional = Effect(0x02) // TODO: rename to Statusful or Throws?
|
||||
EffectCoroutine = Effect(0x04)
|
||||
|
||||
// TODO: will we need an EffectRootCause if every ?-call requires a "do" or
|
||||
|
||||
Reference in new issue
Block a user