From 619cbc5467f45a2abb9bd68192e101afd6b20b00 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 30 Jan 2019 22:34:03 -0600 Subject: Minor feedback --- config.nims | 2 +- nimterop/globals.nim | 2 +- nimterop/types.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.nims b/config.nims index f553869..d43b04f 100644 --- a/config.nims +++ b/config.nims @@ -9,6 +9,6 @@ when defined(MacOSX): else: switch("gcc.linkerexe", "g++") -# Workaround for NilAccessError crash on Windows +# Workaround for NilAccessError crash on Windows #98 when defined(Windows): switch("gc", "markAndSweep") \ No newline at end of file diff --git a/nimterop/globals.nim b/nimterop/globals.nim index 818b0d0..bf9a0ef 100644 --- a/nimterop/globals.nim +++ b/nimterop/globals.nim @@ -1,4 +1,4 @@ -import segfaults, sequtils, sets, tables +import sequtils, sets, tables import regex diff --git a/nimterop/types.nim b/nimterop/types.nim index 15fe317..ecc5345 100644 --- a/nimterop/types.nim +++ b/nimterop/types.nim @@ -37,7 +37,7 @@ template enumOp*(op, typ, typout) = proc op*(x: int, y: typ): typout {.borrow.} proc op*(x, y: typ): typout {.borrow.} -template defineEnum*(typ: untyped) = +template defineEnum*(typ) = type typ* = distinct int -- cgit v1.2.3