summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authordom96 <dominikpicheta@googlemail.com>2011-01-28 00:07:08 +0000
committerdom96 <dominikpicheta@googlemail.com>2011-01-28 00:07:08 +0000
commit557adbcaac45d7b9c92904349c6cc3a7a8282ed7 (patch)
treefe099c599b674643bb61ed5da5043c3e56b48826 /lib/system.nim
parent4b7ff3e0902c92b3483bd1000a8d4fb3f2bf8077 (diff)
parent408eb6bbe76e9e1b0651d07467ce2ba9510deb23 (diff)
downloadNim-557adbcaac45d7b9c92904349c6cc3a7a8282ed7.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 262f0926d..e6ef4fa6f 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1259,6 +1259,18 @@ var
     ## each executed instruction. This should only be used by debuggers!
     ## Only code compiled with the ``debugger:on`` switch calls this hook.
 
+type
+  PFrame = ptr TFrame
+  TFrame {.importc, nodecl, final.} = object
+    prev: PFrame
+    procname: CString
+    line: int # current line number
+    filename: CString
+    len: int  # length of slots (when not debugging always zero)
+
+var
+  framePtr {.threadvar, compilerproc.}: PFrame
+
 when not defined(ECMAScript):
   {.push overflow_checks:off}
   proc add* (x: var string, y: cstring) =