diff options
author | Araq <rumpf_a@web.de> | 2014-08-14 02:44:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-14 02:44:53 +0200 |
commit | c812a616b2fd7bdcd2794db38b5fe4bad98d6a92 (patch) | |
tree | c27ba0eea378671233c4b2ff0d4bb5d26127750d /compiler | |
parent | 2728bbccc4888ddc90adbdf469891935407b80af (diff) | |
parent | fe3d9dd2b692f5108b873b726946b6d8eab489f4 (diff) | |
download | Nim-c812a616b2fd7bdcd2794db38b5fe4bad98d6a92.tar.gz |
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 51444e108..68431bd96 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -967,11 +967,11 @@ proc genMainProc(m: BModule) = # functions, which might otherwise merge their stack frames. NimMainBody = "N_CDECL(void, NimMainInner)(void) {$N" & - "\tPreMain();$N" & "$1" & "}$N$N" & "N_CDECL(void, NimMain)(void) {$N" & "\tvoid (*volatile inner)();$N" & + "\tPreMain();$N" & "\tinner = NimMainInner;$N" & "$2" & "\t(*inner)();$N" & |