asar icon indicating copy to clipboard operation
asar copied to clipboard

Add namespaces to defines

Open MarioFanGamer opened this issue 4 years ago • 1 comments

When I thought about an update for UberASM (the patch, not the tool) and add library support, I realised that it might be a good idea to have namespaces which also spans for defines, not just labels. That lowers the possibility of define incompatibility if you use namespaces for libraries.

It isn't even specialised for UberASM: If you have a compilation of patches, you can easily save space if you put multiple patches into as few freespace blocks as possible so the use of RATS are eliminated for patches (and that does add up, especially with multiple smaller patches). Namespaces help for labels but they don't for defines which still need to be renamed.

MarioFanGamer avatar Aug 01 '20 20:08 MarioFanGamer

It would be useful, but it could also break backwards-compatibility with some patches, so if we implemented this, we'd have to tie it to some compatibility switch or command line option. Something to keep in mind.

RPGHacker avatar Aug 01 '20 21:08 RPGHacker