This commit is contained in:
Araq 2019-05-06 14:56:49 +02:00
commit a85d387928

View file

@ -1,6 +1,9 @@
# imported by other modules, unlike helpers.nim which is included # imported by other modules, unlike helpers.nim which is included
template formatErrorIndexBound*[T](i, a, b: T): string = template formatErrorIndexBound*[T](i, a, b: T): string =
when defined(standalone):
"indexOutOfBounds"
else:
"index " & $i & " not in " & $a & " .. " & $b "index " & $i & " not in " & $a & " .. " & $b
template formatErrorIndexBound*[T](i, n: T): string = template formatErrorIndexBound*[T](i, n: T): string =