Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Defines
Teuchos_StaticSetupMacro.hpp File Reference
#include "Teuchos_ConfigDefs.hpp"
Include dependency graph for Teuchos_StaticSetupMacro.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TEUCHOS_STATIC_SETUP()
 Run setup code statically in a translation unit.

Define Documentation

#define TEUCHOS_STATIC_SETUP ( )
Value:
class StaticSetup { \
  public: \
    StaticSetup(); \
  } staticSetup; \
  \
  StaticSetup::StaticSetup()

Run setup code statically in a translation unit.

NOTE: Make sure the call this in an anonymous namespace as:


 namespace {

 TEUCHOS_STATIC_SETUP()
 {
   // Some code you want to call before main() runs ...
   ...
 }

 } // namespace

 

Definition at line 68 of file Teuchos_StaticSetupMacro.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines