aboutsummaryrefslogtreecommitdiff
path: root/crates/readrom/src
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-02-02 19:56:21 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-02-02 19:56:21 +0100
commit930ad1cc4422f19251ea77a625816e3aebcc6eea (patch)
tree6223b56dfc21a7b4278364e953e2457267518b7f /crates/readrom/src
parente6f6f514cd11e9a512abb00d16b93e800e861c58 (diff)
downloadtools.nes-930ad1cc4422f19251ea77a625816e3aebcc6eea.tar.gz
tools.nes-930ad1cc4422f19251ea77a625816e3aebcc6eea.zip
xixanta: add context from macro expansions
The way macro expansions work is that the evaluated bundles replace the current node, but this throws away the context of the line, the source, etc. from the original line of code. Add a stack that is pushed/popped when expanding macros, and are then cloned for each pending node and error. This way, errors have full context of the original code and can display backtraces for macro expansion. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates/readrom/src')
0 files changed, 0 insertions, 0 deletions