diff options
Diffstat (limited to 'rod/semdata.nim')
-rwxr-xr-x | rod/semdata.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rod/semdata.nim b/rod/semdata.nim index 5020f103d..ebad21ad8 100755 --- a/rod/semdata.nim +++ b/rod/semdata.nim @@ -51,6 +51,7 @@ type semExpr*: proc (c: PContext, n: PNode): PNode # for the pragmas includedFiles*: TIntSet # used to detect recursive include files filename*: string # the module's filename + userPragmas*: TStrTable var gInstTypes*: TIdTable # map PType to PType @@ -124,6 +125,7 @@ proc newContext(module: PSym, nimfile: string): PContext = result.converters = @ [] result.filename = nimfile IntSetInit(result.includedFiles) + initStrTable(result.userPragmas) proc addConverter(c: PContext, conv: PSym) = var L = len(c.converters) |