… | |
… | |
1481 | void |
1481 | void |
1482 | trace (Coro::State coro, int enable = 0) |
1482 | trace (Coro::State coro, int enable = 0) |
1483 | CODE: |
1483 | CODE: |
1484 | if (enable) |
1484 | if (enable) |
1485 | { |
1485 | { |
|
|
1486 | if (coro->cctx && coro->cctx->flags & CC_TRACE) |
|
|
1487 | XSRETURN_EMPTY; |
|
|
1488 | |
1486 | if (coro->flags & CF_RUNNING) |
1489 | if (coro->flags & CF_RUNNING) |
1487 | croak ("cannot enable tracing on running coroutine"); |
1490 | croak ("cannot enable tracing on running coroutine"); |
1488 | |
1491 | |
1489 | if (coro->cctx) |
1492 | if (coro->cctx) |
1490 | croak ("cannot enable tracing on coroutine with custom stack"); |
1493 | croak ("cannot enable tracing on coroutine with custom stack"); |