Deprecate when declared(echo):echo (#13840)

This commit is contained in:
Juan Carlos 2020-04-01 21:56:18 -03:00 • committed by GitHub
commit afd0afe0a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 81 deletions

View file

@ -91,8 +91,7 @@ proc echoCfg*(c: ControlFlowGraph; start=0; last = -1) {.deprecated.} =
## echos the ControlFlowGraph for debugging purposes.
var buf = ""
codeListing(c, buf, start, last)
when declared(echo):
echo buf
echo buf
proc forkI(c: var Con; n: PNode): TPosition =
result = TPosition(c.code.len)