Refactoring of define_helper:
- add clear variable names instead of reusing args, arg, and val. - move variable definitons to where they're used - restructure into three major parts
This moves the code closer to being able to get rid of the tristate macro_flag.
Authored by: david_costanzo 2026-05-29
Parent: [r6239]
Child: [r6241]