asar
asar copied to clipboard
Add namespaces to defines
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.
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.