aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/context.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-07-17 16:06:34 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-12 07:40:53 +0100
commit5b1f387d451b3ff136464dcbc71f0c2310a57d01 (patch)
tree5131731d044823d66c5938cf4870f09f7ed19fec /lib/xixanta/src/context.rs
parent376dcb684ce779a7051bbc9a95359114e94cae5e (diff)
downloadtools.nes-5b1f387d451b3ff136464dcbc71f0c2310a57d01.tar.gz
tools.nes-5b1f387d451b3ff136464dcbc71f0c2310a57d01.zip
Add basic support for macros
Macros can now be described with the '.macro' control statement, but no parameters can be given and it's overall pretty brittle. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/context.rs')
-rw-r--r--lib/xixanta/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/src/context.rs b/lib/xixanta/src/context.rs
index a4ffc5b..32f9de9 100644
--- a/lib/xixanta/src/context.rs
+++ b/lib/xixanta/src/context.rs
@@ -30,7 +30,7 @@ impl Context {
}
}
- pub fn reset(&mut self) {
+ pub fn global(&mut self) {
self.stack = vec![];
}