added system.compiles

This commit is contained in:
Araq 2012-07-20 08:49:42 +02:00
commit 1c6f14deee
8 changed files with 65 additions and 5 deletions

View file

@ -63,6 +63,7 @@ type
# store this info in the syms themselves!)
InGenericContext*: int # > 0 if we are in a generic
InUnrolledContext*: int # > 0 if we are unrolling a loop
InCompilesContext*: int # > 0 if we are in a ``compiles`` magic
converters*: TSymSeq # sequence of converters
optionStack*: TLinkedList
libs*: TLinkedList # all libs used by this module
@ -100,7 +101,7 @@ proc PushOwner*(owner: PSym)
proc PopOwner*()
# implementation
var gOwners: seq[PSym] = @[]
var gOwners*: seq[PSym] = @[]
proc getCurrOwner(): PSym =
# owner stack (used for initializing the