commit 6543530ab3297bbc052deaffc710d6c301ccefbe
parent 0a9ec93260308a3f95117f3a19b1300fe79d5797
Author: Milan Pässler <milan@petabyte.dev>
Date: Sat, 13 Mar 2021 13:10:02 +0100
parent 0a9ec93260308a3f95117f3a19b1300fe79d5797
Author: Milan Pässler <milan@petabyte.dev>
Date: Sat, 13 Mar 2021 13:10:02 +0100
commit utils file
diff --git a/exif.nim b/exif.nim @@ -11,8 +11,6 @@ proc deinit_exif*() = dealloc(buf) proc collect_exif_data*(ed: ptr ExifData): Table[string, string] {.gcsafe.} = - #result = initTable[string, string]() - proc process_entries(entry: ptr ExifEntry , callback_data: pointer) {.cdecl.} = let name = exif_tag_get_name(entry.tag) let val = exif_entry_get_value(entry, buf, 2000)
diff --git a/utils.nim b/utils.nim @@ -0,0 +1,7 @@ +template debug*(x: varargs[untyped]) = + if not defined(release): + echo(x) + +template error*(x: varargs[untyped]) = + echo(x) + quit(1)