diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-09 17:02:36 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-09 23:06:23 +0100 |
| commit | ae54968ec2e2cac6cace95b25958ed5550d2aad9 (patch) | |
| tree | 24f817999da8bdd264d38c222178637d66163760 /lib/xixanta/src/object.rs | |
| parent | 84eb36b71b61ee39794f1f262ad859843948e44c (diff) | |
| download | tools.nes-ae54968ec2e2cac6cace95b25958ed5550d2aad9.tar.gz tools.nes-ae54968ec2e2cac6cace95b25958ed5550d2aad9.zip | |
asan: ignore names from macro arguments
These are usually capitalized, and thus they are not going to be
following the usual zp_/m_/wr_ pattern.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/object.rs')
| -rw-r--r-- | lib/xixanta/src/object.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs index c70afb7..c16ddb0 100644 --- a/lib/xixanta/src/object.rs +++ b/lib/xixanta/src/object.rs @@ -119,6 +119,7 @@ impl Bundle { pub enum ObjectType { Address, Value, + Argument, } /// Bundle and metadata which is stored on the context table for a given @@ -241,7 +242,7 @@ impl Context { match self.map.get_mut(scope_name) { Some(scope) => match scope.get_mut(var_name) { Some(var) => match var.object_type { - ObjectType::Value => { + ObjectType::Value | ObjectType::Argument => { var.accessed += 1; Ok(var.clone()) } |
