From 050a3ac82b130c81455950cbe6f5b4d233f90e87 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Thu, 7 Dec 2023 16:35:32 +0100 Subject: [PATCH] Updated comment --- yasync.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yasync.nim b/yasync.nim index e6bffd4..5c013fb 100644 --- a/yasync.nim +++ b/yasync.nim @@ -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 ``: int @@ -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 {