add {.used.} to stddefects for nim 1.4 and above

This commit is contained in:
jangko 2023-02-15 16:18:10 +07:00
parent 6cc42beac7
commit c52569abd5
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 0 deletions

View File

@ -21,3 +21,5 @@ when (NimMajor, NimMinor) < (1, 4):
RangeDefect* = RangeError
ReraiseDefect* = ReraiseError
StackOverflowDefect* = StackOverflowError
else:
{.used.}