make system/fatal importable (#20719)

This commit is contained in:
ringabout 2022-11-01 14:56:32 +08:00 • committed by GitHub
commit d735c447d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 16 deletions

View file

@ -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.}