tnocodegen_for_compiletime.nim 197 B

12345678910
  1. # bug #1679
  2. import macros, tables, hashes
  3. proc hash(v: NimNode): Hash = 4 # performance is for suckers
  4. macro test(body: untyped) =
  5. var a = initCountTable[NimNode]()
  6. a.inc(body)
  7. test:
  8. 1 + 1