Renamed macro

This commit is contained in:
Andrea Ferretti 2015-07-05 15:34:30 +02:00
commit ff1d10be30
3 changed files with 10 additions and 10 deletions

View file

@ -151,7 +151,7 @@ proc defineEquality(tp, body: NimNode): NimNode {. compileTime .} =
)
# result = getAst(compare(condition, tp))
macro adt*(e: expr, body: stmt): stmt {. immediate .} =
macro variant*(e: expr, body: stmt): stmt {. immediate .} =
result = newStmtList(defineTypes(e, body), defineEquality(e, body))
for child in children(body):