I was moving some code over to a header file and got a surprise, using GCB v96.008.
Using "InitXYZ" before Main worked just fine. Works with conditionals too.
Moved "InitXYZ" to header file and no dice.
Using "#startup InitXYZ" works. I was hoping to use a conditional to invoke the initialization routine, but that doesn't work with #startup.
So is #startup now mandatory when initializing routines in header files?
Guh, never mind, I was having one of those moments. Forgot to call the InitXYZ from program code, duh.
The other question still stands though about using conditionals with #startup though.
Log in to post a comment.
I was moving some code over to a header file and got a surprise, using GCB v96.008.
Using "InitXYZ" before Main worked just fine. Works with conditionals too.
Moved "InitXYZ" to header file and no dice.
Using "#startup InitXYZ" works. I was hoping to use a conditional to invoke the initialization routine, but that doesn't work with #startup.
So is #startup now mandatory when initializing routines in header files?
Guh, never mind, I was having one of those moments. Forgot to call the InitXYZ from program code, duh.
The other question still stands though about using conditionals with #startup though.