add more APIs to compiler/debugutils; re-export it (#18243)

This commit is contained in:
Timothee Cour 2021-06-18 06:52:08 -07:00 • committed by GitHub
commit 87cd9b24a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 85 additions and 0 deletions

View file

@ -472,7 +472,10 @@ const foreignPackageNotesDefault* = {
proc isDefined*(conf: ConfigRef; symbol: string): bool
when defined(nimDebugUtils):
# this allows inserting debugging utilties in all modules that import `options`
# with a single switch, which is useful when debugging compiler.
import debugutils
export debugutils
proc initConfigRefCommon(conf: ConfigRef) =
conf.selectedGC = gcRefc