You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem this feature will solve
Right now, if we do ever want to include testing stuff in our main code (which I don't necessarily like in the first place), we can't conditionally compile it on anything other than the DEBUG macro or manually defined macros.
Describe the proposed solution
Basically, we can add a makefile step that adds a -DTEST_FILE_NAME to our gcc flags, so that the TEST_FILE_NAME macro is defined for any given test file. For example, if I were to run: make leader TEST=StateMachine
a macro called TEST_STATE_MACHINE would be automatically defined for all compiled files.
Describe possible alternatives
This is a small enough thing to add to where if we decide later on that it's not useful we just don't have to condition anything on the macro.
Additional context
This would also be useful to add small things during the debugging process if necessary. It's just a quality of life thing.
The text was updated successfully, but these errors were encountered:
Describe the problem this feature will solve
Right now, if we do ever want to include testing stuff in our main code (which I don't necessarily like in the first place), we can't conditionally compile it on anything other than the DEBUG macro or manually defined macros.
Describe the proposed solution
Basically, we can add a makefile step that adds a -DTEST_FILE_NAME to our gcc flags, so that the TEST_FILE_NAME macro is defined for any given test file. For example, if I were to run:
make leader TEST=StateMachine
a macro called TEST_STATE_MACHINE would be automatically defined for all compiled files.
Describe possible alternatives
This is a small enough thing to add to where if we decide later on that it's not useful we just don't have to condition anything on the macro.
Additional context
This would also be useful to add small things during the debugging process if necessary. It's just a quality of life thing.
The text was updated successfully, but these errors were encountered: