Module utils

Procs

proc `|`(s: string; d: int): string {.
raises: [], tags: []
.}
  Source Edit
proc `|`(x: int; d: int): string {.
raises: [], tags: []
.}
  Source Edit
proc `|`(f: float; d: tuple[w, p: int]): string {.
raises: [], tags: []
.}
  Source Edit
proc `|`(f: float; d: int): string {.
raises: [], tags: []
.}
  Source Edit
proc fixedTruncateR(s: string; maxLen: int): string {.
raises: [], tags: []
.}
  Source Edit
proc fixedTruncateL(s: string; maxLen: int): string {.
raises: [], tags: []
.}
  Source Edit
proc seqAddr[T](s: var seq[T]): ptr T
  Source Edit
proc getFields[](T: typedesc): seq[string]
  Source Edit

Macros

macro debug(n: varargs[typed]): untyped
  Source Edit
macro showExpr(arg: untyped): untyped
  Source Edit
macro showStmt(arg: untyped): untyped
  Source Edit

Templates

template scope(name: string; code: untyped): untyped
  Source Edit
template UnitTestSuite(name: string; code: untyped): untyped
  Source Edit
template notCompiles(e: untyped): untyped
  Source Edit
template getSourcePath(): string
  Source Edit