diff --git a/lib/system.nim b/lib/system.nim index 5813651869..9ef8128c2d 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1802,6 +1802,8 @@ const NimStackTrace = compileOption("stacktrace") const usesDestructors = defined(gcDestructors) or defined(gcHooks) +include "system/gc_interface" + when notJSnotNims: proc setControlCHook*(hook: proc () {.noconv.}) {.raises: [], gcsafe.} ## Allows you to override the behaviour of your application when CTRL+C @@ -1978,8 +1980,6 @@ proc `<`*[T: tuple](x, y: T): bool = return false -include "system/gc_interface" - import system/coro_detection {.push checks: off.}