preparations for the new symbol binding rules for clean templates
This commit is contained in:
parent
b75d23b5e7
commit
ce5a1365c2
3 changed files with 4 additions and 3 deletions
|
|
@ -1028,7 +1028,7 @@ proc readIntoBuf(socket: TSocket, flags: int32): int =
|
|||
socket.bufLen = result
|
||||
socket.currPos = 0
|
||||
|
||||
template retRead(flags, readBytes: int) =
|
||||
template retRead(flags, readBytes: int) {.dirty.} =
|
||||
let res = socket.readIntoBuf(flags.int32)
|
||||
if res <= 0:
|
||||
if readBytes > 0:
|
||||
|
|
|
|||
|
|
@ -194,7 +194,8 @@ when not defined(JS) and not defined(NimrodVM):
|
|||
data: array[0..100_000_000, char]
|
||||
NimString = ptr NimStringDesc
|
||||
|
||||
template space(s: PGenericSeq): int = s.reserved and not seqShallowFlag
|
||||
template space(s: PGenericSeq): int {.dirty.} =
|
||||
s.reserved and not seqShallowFlag
|
||||
|
||||
include "system/hti"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue