summary refs log tree commit diff stats
path: root/compiler/options.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-06-24 02:55:31 -0700
committerGitHub <noreply@github.com>2021-06-24 11:55:31 +0200
commit565e07a9936657fa356777eec5f0f52b2d5d7e02 (patch)
tree3c86289986e78256dd2196ee97d5a6a546566ba5 /compiler/options.nim
parent0c8d3ae9852721147ddf878e204c14e949ed676a (diff)
downloadNim-565e07a9936657fa356777eec5f0f52b2d5d7e02.tar.gz
enable VM tracing in user code via `{.define(nimVmTrace).}` (#18244)
* enable VM tracing in user code via  `{.define(nimVmTrace).}`

* add vmutils.vmTrace

* add vmTrace
Diffstat (limited to 'compiler/options.nim')
-rw-r--r--compiler/options.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index ffb0f4501..135ecf1de 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -330,6 +330,7 @@ type
     warnCounter*: int
     errorMax*: int
     maxLoopIterationsVM*: int ## VM: max iterations of all loops
+    isVmTrace*: bool
     configVars*: StringTableRef
     symbols*: StringTableRef ## We need to use a StringTableRef here as defined
                              ## symbols are always guaranteed to be style