diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-01-25 20:00:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 20:00:13 +0100 |
commit | 6efac70181f54d24627b101ede6c79b8c3e74a96 (patch) | |
tree | 4ae2ee9081f66229ade8babe8c6cde16b59bb02f /compiler/main.nim | |
parent | 4f3dd33509070f0f50bbe5bbb6cbfc8a12b47b49 (diff) | |
download | Nim-6efac70181f54d24627b101ede6c79b8c3e74a96.tar.gz |
make goto based exceptions available for 'nim cpp' (#13244)
* make goto based exceptions available for 'nim cpp' * optimize seq.add to be comparable to C++'s emplace_back
Diffstat (limited to 'compiler/main.nim')
-rw-r--r-- | compiler/main.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim index 87180db0a..5efdd87af 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -185,11 +185,12 @@ proc mainCommand*(graph: ModuleGraph) = of "c", "cc", "compile", "compiletoc": # compile means compileToC currently conf.cmd = cmdCompileToC + if conf.exc == excNone: conf.exc = excSetjmp defineSymbol(graph.config.symbols, "c") commandCompileToC(graph) of "cpp", "compiletocpp": conf.cmd = cmdCompileToCpp - conf.exc = excCpp + if conf.exc == excNone: conf.exc = excCpp defineSymbol(graph.config.symbols, "cpp") commandCompileToC(graph) of "objc", "compiletooc": |