From f0d18f6d35f99467b93b6918bbfb408af754123d Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 22 May 2024 09:29:58 +0200 Subject: [PATCH] Adds raise-lists to Iter callbacks. --- leveldbstatic.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leveldbstatic.nim b/leveldbstatic.nim index d80e8f4..282988e 100644 --- a/leveldbstatic.nim +++ b/leveldbstatic.nim @@ -76,8 +76,8 @@ type LevelDbException* = object of CatchableError - IterNext* = proc(): (string, string) {.gcsafe, closure.} - IterDispose* = proc() {.gcsafe, closure.} + IterNext* = proc(): (string, string) {.gcsafe, closure, raises: [LevelDbException].} + IterDispose* = proc() {.gcsafe, closure, raises: [].} LevelDbQueryIter* = ref object finished*: bool next*: IterNext