From 6653e8d66d711ab8c3ee0ee3f8f060e4f4d00277 Mon Sep 17 00:00:00 2001 From: neroist Date: Wed, 17 Apr 2024 03:28:20 -0400 Subject: [PATCH] change doc wording a bit and remove spacing in pragma --- uing.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uing.nim b/uing.nim index 81e3a00..948dbd7 100644 --- a/uing.nim +++ b/uing.nim @@ -45,7 +45,7 @@ proc quit* = rawui.quit() proc quitAll*(errorcode: int = QuitSuccess) = - ## Both quit UIng and the program altogether + ## Quit both UIng and the program altogether rawui.quit() system.quit(errorcode) @@ -74,7 +74,7 @@ template newFinal(result) = new result#, finalize -template genCallback(name, typ, on) {. dirty .} = +template genCallback(name, typ, on) {.dirty.} = proc name(w: ptr rawui.typ; data: pointer) {.cdecl.} = let widget = cast[typ](data) if widget.on != nil: widget.on(widget)