mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Have "return ok" set coro_susp_point = 0.
This commit is contained in:
1 parent
585ea2024d
commit
a12292d094
6 files changed
+60
-15
No files matched your search
@@ -18,8 +18,10 @@
|
||||
case n:;
|
||||
|
||||
#define PUFFS_COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(n) \
|
||||
if (status <= 0) { \
|
||||
if (status < 0) { \
|
||||
goto exit; \
|
||||
} else if (status == 0) { \
|
||||
goto ok; \
|
||||
} \
|
||||
coro_susp_point = n; \
|
||||
goto suspend; \
|
||||
|
||||
Reference in new issue
Block a user