summary refs log blame commit diff stats
path: root/tests/template/mdotcall2.nim
blob: e906ac9d69456d87719487e2695b757df5b98b16 (plain) (tree)
1
2
3
4
5
6
7






                                              
# imported by mdotcall

proc baseAddr*[T](x: openarray[T]): pointer =
  cast[pointer](x)

proc shift*(p: pointer, delta: int): pointer =
  cast[pointer](cast[int](p) + delta)