summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 7f61e94..9f1150b 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -606,6 +606,7 @@ void cr_unpause_from_intrhandler(cid_t cid) {
}
cid_t cr_getcid(void) {
+ assert_cid_state(coroutine_running, state == CR_RUNNING);
return coroutine_running;
}