bugfix: allow 'export' in the VM

This commit is contained in:
Andreas Rumpf
2018-06-12 21:08:41 +02:00
parent b379547fc0
commit f555338ce8
2 changed files with 2 additions and 1 deletions

View File

@@ -70,3 +70,4 @@ proc initDefines*(symbols: StringTableRef) =
defineSymbol("nimNoNil")
defineSymbol("nimNoZeroTerminator")
defineSymbol("nimNotNil")
defineSymbol("nimVmExportFixed")

View File

@@ -1899,7 +1899,7 @@ proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
else:
dest = tmp0
of nkEmpty, nkCommentStmt, nkTypeSection, nkConstSection, nkPragma,
nkTemplateDef, nkIncludeStmt, nkImportStmt, nkFromStmt:
nkTemplateDef, nkIncludeStmt, nkImportStmt, nkFromStmt, nkExportStmt:
unused(c, n, dest)
of nkStringToCString, nkCStringToString:
gen(c, n.sons[0], dest)