Renamed macro
This commit is contained in:
parent
aa68f7be50
commit
ff1d10be30
3 changed files with 10 additions and 10 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue