Remove expr/stmt (#5857)

This commit is contained in:
Arne Döring 2017-07-25 09:28:23 +02:00 • committed by Andreas Rumpf
commit 000b8afd26
168 changed files with 497 additions and 529 deletions

View file

@ -8,17 +8,17 @@ proc isPartOf*[S, T](a: S, b: T): TAnalysisResult {.
magic: "IsPartOf", noSideEffect.}
## not yet exported properly.
template compileTimeAssert(cond: expr) =
template compileTimeAssert(cond) =
when not cond:
{.compile: "is false: " & astToStr(cond).}
template `<|` (a, b: expr) =
template `<|` (a, b) =
compileTimeAssert isPartOf(a, b) == arYes
template `!<|` (a, b: expr) =
template `!<|` (a, b) =
compileTimeAssert isPartOf(a, b) == arNo
template `?<|` (a, b: expr) =
template `?<|` (a, b) =
compileTimeAssert isPartOf(a, b) == arMaybe
type