diff options
| author | Thomas Bracht Laumann Jespersen <[email protected]> | 2023-01-26 12:09:44 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2023-06-06 18:44:51 +0200 |
| commit | 0d929287d77ccc3fb52ca8bd072678b5ae2c81c8 (patch) | |
| tree | 72cf91ec66052797059734c9d089a49a69b47122 /ops.h | |
| parent | e493a7f23352f51acc0a1e12284ab19d7894488a (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) */ |
