This commit is contained in:
Andrii Riabushenko
2019-07-25 23:02:04 +01:00
parent 3bb6d1916e
commit d7bc4e43a2
9 changed files with 50 additions and 41 deletions

View File

@@ -171,6 +171,9 @@ proc popOwner*(c: PContext) =
proc lastOptionEntry*(c: PContext): POptionEntry =
result = c.optionStack[^1]
proc message*(c: PContext, info: TLineInfo, msg: TMsgKind, arg = "") =
message(c.config, c.lastOptionEntry.notes, c.lastOptionEntry.options, info, msg, arg)
proc popProcCon*(c: PContext) {.inline.} = c.p = c.p.next
proc put*(p: PProcCon; key, val: PSym) =