Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ macro resumable(ex::Expr...)
func_def[:body] = quote
_fsmi._state === 0x00 && @goto $(Symbol("_STATE_0"))
$((:(_fsmi._state === $i && @goto $(Symbol("_STATE_",:($i)))) for i in 0x01:ui8.n)...)
error("@resumable function has stopped!")
_name = $_name
error(lazy"@resumable function $(_name) has stopped!")
@label $(Symbol("_STATE_0"))
_fsmi._state = 0xff
_arg isa Exception && throw(_arg)
Expand Down
Loading