Skip to content

Commit

Permalink
Updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Dec 7, 2023
1 parent 5097e54 commit 050a3ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yasync.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type
ContHeader = object
p: ProcType
e: ptr ContBase
flags: set[ContFlags]
error: ref Exception
flags: set[ContFlags]

ContBase = object of RootObj
`<state_reserved>`: int
Expand Down Expand Up @@ -405,8 +405,8 @@ proc makeAsyncWrapper(prc, iterSym, iterDecl: NimNode, isCapture: bool): NimNode
const iterPtrName = genIterPtrName(`iterPtrName`)
proc getIterPtr(): ProcType {.stacktrace: off, nimcall, exportc: iterPtrName.} =
# The emit is a hacky optimization to avoid calling newObj
# this code is performed once per every async function
# so should not bee critical.
# and eventually allow the C optimizer to collapse it
# entirely.
when defined(gcDestructors):
{.emit: """
struct {
Expand Down

0 comments on commit 050a3ac

Please sign in to comment.