Revert 5e4ae8d
This commit is contained in:
parent
f2e717da2d
commit
0619383f46
6 changed files with 43 additions and 108 deletions
|
|
@ -1341,10 +1341,6 @@ proc skipTypes*(t: PType, kinds: TTypeKinds): PType =
|
|||
result = t
|
||||
while result.kind in kinds: result = lastSon(result)
|
||||
|
||||
proc safeSkipTypes*(t: PType, kinds: TTypeKinds): PType =
|
||||
result = if t != nil: t.skipTypes(kinds)
|
||||
else: nil
|
||||
|
||||
proc isGCedMem*(t: PType): bool {.inline.} =
|
||||
result = t.kind in {tyString, tyRef, tySequence} or
|
||||
t.kind == tyProc and t.callConv == ccClosure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue