summary refs log tree commit diff stats
path: root/tests/stdlib/tsegfaults.nim
Commit message (Collapse)AuthorAgeFilesLines
* merge stdlib tests (#9439)Miran2018-10-191-29/+0
|
* new segfaults.nim stdlib module works on WindowsAraq2017-01-201-0/+4
|
* first implementation of segfaults stdlib moduleAndreas Rumpf2017-01-201-0/+25
template toLocation*(result: var string, file: string | cstring, line: int, col: int) =
  ## avoids spurious allocations
  # Hopefully this can be re-used everywhere so that if a user needs to customize,
  # it can be done in a single place.
  result.add file
  if line > 0:
    result.add "("
    # simplify this after moving moving `include strmantle` above import assertions`
    when declared(addInt): result.addInt line
    else: result.add $line
    if col > 0:
      result.add ", "
      when declared(addInt): result.addInt col
      else: result.add $col
    result.add ")"