cvghivebrain / s1disasm

Sonic the Hedgehog (Mega Drive) Hivebrain 2022 disassembly
45 stars 8 forks source link

Suggestion: allow index/ptr macros to set different prefixes #7

Open Brainulator9 opened 3 years ago

Brainulator9 commented 3 years ago

Being able to selectively set an ID prefix to something other than "id_" would help streamline code and make things easier to edit. That way, instead of id_frame_stand or id_frame_sonic_stand, we can just use frame_sonic_stand. I know, not the best example, but I could see it going places.

cvghivebrain commented 3 years ago

I didn't want to add another parameter to the macro, but I made it so now you can change the prefix at any point with the following:

prefix_id: equs "id_"

Brainulator9 commented 3 years ago

If you're that reluctant to do that, I'm fine with this being left out for simplicity's sake.