balt-dev / robot-is-chill

Modified version of RocketRace/robot-is-you
GNU General Public License v3.0
22 stars 17 forks source link

Add, change, and fix macros #140

Closed Mathman2028 closed 5 months ago

Mathman2028 commented 5 months ago

New macros:

Mathman2028 commented 5 months ago

there seems to be an inconsistency with how you're doing custom errors one of them uses a new class, and one of them uses a boolean on the old class, and it seems that the code is generating one but checking for the other

the macros error and assert raise the CustomMacroError, which is then caught in the macro error handler (macros.py, line 428)

that then sets the boolean for FailedBuiltinMacro which is handled by the default handler (errorhandler.py, line 203)