distinguish between 'defined' and 'declared'
This commit is contained in:
parent
b1c8461a3b
commit
dd806cafa0
36 changed files with 155 additions and 96 deletions
|
|
@ -77,7 +77,7 @@ proc llStreamClose(s: PLLStream) =
|
|||
of llsFile:
|
||||
close(s.f)
|
||||
|
||||
when not defined(readLineFromStdin):
|
||||
when not declared(readLineFromStdin):
|
||||
# fallback implementation:
|
||||
proc readLineFromStdin(prompt: string, line: var string): bool =
|
||||
stdout.write(prompt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue