summary refs log tree commit diff stats
path: root/lib/system/helpers2.nim
blob: 1c9e7c068d2171ca9b0cdedc322b228c5833b593 (plain) (blame)
1
2
3
4
5
template formatErrorIndexBound*[T](i, a, b: T): string =
  "index out of bounds: (a:" & $a & ") <= (i:" & $i & ") <= (b:" & $b & ") "

template formatErrorIndexBound*[T](i, n: T): string =
  "index out of bounds: (i:" & $i & ") <= (n:" & $n & ") "