2022-07-27 10:10:26 +02:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
type
|
|
|
|
AccessViolationDefect* = AccessViolationError
|
|
|
|
ArithmeticDefect* = ArithmeticError
|
|
|
|
AssertionDefect* = AssertionError
|
|
|
|
DeadThreadDefect* = DeadThreadError
|
|
|
|
DivByZeroDefect* = DivByZeroError
|
|
|
|
FieldDefect* = FieldError
|
|
|
|
FloatDivByZeroDefect* = FloatDivByZeroError
|
|
|
|
FloatInexactDefect* = FloatInexactError
|
|
|
|
FloatInvalidOpDefect* = FloatInvalidOpError
|
|
|
|
FloatOverflowDefect* = FloatOverflowError
|
|
|
|
FloatUnderflowDefect* = FloatUnderflowError
|
|
|
|
FloatingPointDefect* = FloatingPointError
|
|
|
|
IndexDefect* = IndexError
|
|
|
|
NilAccessDefect* = NilAccessError
|
|
|
|
ObjectAssignmentDefect* = ObjectAssignmentError
|
|
|
|
ObjectConversionDefect* = ObjectConversionError
|
|
|
|
OutOfMemDefect* = OutOfMemError
|
|
|
|
OverflowDefect* = OverflowError
|
|
|
|
RangeDefect* = RangeError
|
|
|
|
ReraiseDefect* = ReraiseError
|
|
|
|
StackOverflowDefect* = StackOverflowError
|
2023-02-15 16:18:10 +07:00
|
|
|
else:
|
|
|
|
{.used.}
|