Menu

#startup Now required to initialize routines in header files?

Help
kent_twt4
2017-03-31
2017-03-31
  • kent_twt4

    kent_twt4 - 2017-03-31

    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?

     
  • kent_twt4

    kent_twt4 - 2017-03-31

    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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.