Fixes for styleCheck:usages

This commit is contained in:
Tanguy 2022-08-03 14:32:47 +02:00
parent 955597a4fd
commit ae41bcfb0f
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
--styleCheck:usages
if (NimMajor, NimMinor) < (1, 6):
--styleCheck:hint
else:
--styleCheck:error
# begin Nimble config (version 1)
when fileExists("nimble.paths"):
include "nimble.paths"

View File

@ -1,6 +1,6 @@
import std/options
var captureEnabled {.global, compiletime.}: bool
var captureEnabled {.global, compileTime.}: bool
var errorVariable: ptr ref CatchableError
template captureBindError*(error: var ref CatchableError, expression): auto =