aboutsummaryrefslogtreecommitdiff
path: root/ops.h
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <[email protected]>2023-01-26 12:09:44 +0100
committerQuentin Carbonneaux <[email protected]>2023-06-06 18:44:51 +0200
commit0d929287d77ccc3fb52ca8bd072678b5ae2c81c8 (patch)
tree72cf91ec66052797059734c9d089a49a69b47122 /ops.h
parente493a7f23352f51acc0a1e12284ab19d7894488a (diff)
implement line number info tracking
Support "file" and "loc" directives. "file" takes a string (a file name) assigns it a number, sets the current file to that number and records the string for later. "loc" takes a single number and outputs location information with a reference to the current file.
Diffstat (limited to 'ops.h')
-rw-r--r--ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ops.h b/ops.h
index fbcc2a8..e0be8d0 100644
--- a/ops.h
+++ b/ops.h
@@ -121,6 +121,8 @@ O(vastart, T(m,e,e,e, x,e,e,e), 0) X(0, 0, 0) V(0)
O(copy, T(w,l,s,d, x,x,x,x), 0) X(0, 0, 1) V(0)
+/* Debug */
+O(loc, T(w,l,s,d, x,x,x,x), 0) X(0, 0, 1) V(0)
/****************************************/
/* INTERNAL OPERATIONS (keep nop first) */