make system/fatal importable (#20719)
This commit is contained in:
parent
49e793e8c4
commit
d735c447d3
3 changed files with 15 additions and 16 deletions
|
|
@ -1637,8 +1637,13 @@ when not defined(nimscript):
|
|||
## for debug builds. Since it's usually used for debugging, this
|
||||
## is proclaimed to have no IO effect!
|
||||
|
||||
when not declared(sysFatal):
|
||||
include "system/fatal"
|
||||
|
||||
when defined(nimHasExceptionsQuery):
|
||||
const gotoBasedExceptions = compileOption("exceptions", "goto")
|
||||
else:
|
||||
const gotoBasedExceptions = false
|
||||
|
||||
import system/fatal
|
||||
|
||||
when not defined(nimscript):
|
||||
{.push stackTrace: off, profiler: off.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue