<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools.nes/tests/unused_macro_arg.s, branch main</title>
<subtitle>Tools for NES/Famicom development.
</subtitle>
<id>https://git.mssola.com/nes/tools.nes/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/nes/tools.nes/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/'/>
<updated>2026-07-07T21:51:17Z</updated>
<entry>
<title>Let arguments be able to reference their macro</title>
<updated>2026-07-07T21:51:17Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-07-07T21:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=5fca76b56034554d965b77d1485f92685d79bc84'/>
<id>urn:sha1:5fca76b56034554d965b77d1485f92685d79bc84</id>
<content type='text'>
The enum type for macro arguments has been adjusted so it accepts a
String. This is then used to store the name of the macro for this
argument.

This is a bit of a circlejerk, but in the end it stems from the fact
that macro arguments were sort of a hack defined ad-hoc each time they
were needed. That being said, if we want to report macro arguments being
unused, we need to reference the actual macro definition, not the macro
call.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>Preserve the 'accessed' member on macro arguments</title>
<updated>2026-07-07T21:15:00Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-07-07T21:15:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=6b43fd7c0773bd97c4bd80145a17d67062afd4ea'/>
<id>urn:sha1:6b43fd7c0773bd97c4bd80145a17d67062afd4ea</id>
<content type='text'>
Macro arguments get tampered with every time a new call has to be
bundled. Deep down this is done by cloning the underlying object, but
this resets any increase on the 'accessed' member, giving always the
impression that macro arguments are never accessed. Fix this by at least
preserving this member when cloning a macro argument.

Note that this is neither the most elegant solution, and probably not
the most correct. As in, it will probably get into a non-precise count
after some calls. But at least it will be a non-zero value, which is
more than enough to what this is actually used for.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
</feed>
