PASM-style header file
escher
Posts: 138
in Propeller 1
I've looked high and low for an answer to this, but haven't found anything definitive (potentially using the wrong keywords).
I have multiple .spin object files which use the same set of constants.
If I need to change a constant for a test or other iteration, I have to manually edit the constant section of each file.
Is there a way to have a single file with a `CON` section that could be used by all other files?
I'm aware of the `FILE` PASM functionality, however using it seems overkill.
I have multiple .spin object files which use the same set of constants.
If I need to change a constant for a test or other iteration, I have to manually edit the constant section of each file.
Is there a way to have a single file with a `CON` section that could be used by all other files?
I'm aware of the `FILE` PASM functionality, however using it seems overkill.
Comments
e.g. then use it like:
Thank you and @jonnymac for your inputs!
It's funny actually, I came really close to jonny's solution but ran into the "at least one pub method required" build error. I assumed at that point my solution was a bad one.
I like to hear more modern compilers exist. The project I'm working on is intended for people to exhert as little effort as humanly possible to use, so I'll dissuade from 3rd party compilers. However, I'll 100% be considering them for future projects.