diff options
-rw-r--r-- | compiler/cgen.nim | 3 | ||||
-rw-r--r-- | lib/pure/unittest.nim | 2 | ||||
-rw-r--r-- | lib/system.nim | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 367fced9a..56002459e 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1013,10 +1013,9 @@ proc genMainProc(m: BModule) = ComponentConstruct = "void Libc::Component::construct(Libc::Env &env) {$N" & "\tgenodeEnv = &env;$N" & - "\tLibc::with_libc([&] () {$n\t" & + "\tLibc::with_libc([&] () {$N\t" & MainProcs & "\t});$N" & - "\tenv.parent().exit(0);$N" & "}$N$N" var nimMain, otherMain: FormatStr diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim index 3772a213a..7a8d1dad0 100644 --- a/lib/pure/unittest.nim +++ b/lib/pure/unittest.nim @@ -312,7 +312,7 @@ proc ensureInitialized() = if not testsToRun.isValid: testsToRun.init() - when declared(os): + when declared(paramCount): # Read tests to run from the command line. for i in 1 .. paramCount(): testsToRun.incl(paramStr(i)) diff --git a/lib/system.nim b/lib/system.nim index d85f272f2..ddc72ffaf 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1436,7 +1436,8 @@ when defined(nimdoc): ## <#GC_fullCollect>`_. ## ## The proc ``quit(QuitSuccess)`` is called implicitly when your nim - ## program finishes without incident. A raised unhandled exception is + ## program finishes without incident for platforms where this is the + ## expected behavior. A raised unhandled exception is ## equivalent to calling ``quit(QuitFailure)``. ## ## Note that this is a *runtime* call and using ``quit`` inside a macro won't |