index

patterns: launch init


class   MyModuleInit   { 
public: MyModuleInit() { 
        MyModuleInit::setDefaults(); 
#ifdef    DEBUG 
       // run tests here.. 
#endif // DEBUG 
}}; 
MyModuleInit mymoduleinit; // Run at launch.
Run a constructor with arbitrary commands at launch.

Great for initializations, tests, and prototype construction.

nedwaves.com 2017 [171108]