|
SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Go to the source code of this file.
Macros | |
| #define | smtkAutoInitComponentMacro(C) |
| #define | smtkAutoInitConstructMacro(C) C##_AutoInit_Construct(); |
| #define | smtkAutoInitDestructMacro(C) C##_AutoInit_Destruct(); |
| #define | smtkComponentInitMacro(C) |
| Register an SMTK component for use. More... | |
| #define smtkAutoInitComponentMacro | ( | C | ) |
| #define smtkComponentInitMacro | ( | C | ) |
Register an SMTK component for use.
Initialize the named SMTK component (such as a modeling kernel), ensuring it is correctly registered and unregistered. This call must be made in global scope in the translation unit of your executable (which can include code built into a shared library linked to your executable, but will not work as expected in code linked to your executable as part of a static library).
If included in the global scope, the above snippet will ensure the global function smtk_cgm_session_AutoInit_Construct is called during dynamic C++ initialization and and the global function smtk_cgm_session_AutoInit_Destruct is called during finalization.
1.8.17