16 #ifndef __OMNETPP_ONSTARTUP_H 17 #define __OMNETPP_ONSTARTUP_H 21 #include "simkerneldefs.h" 22 #include "cownedobject.h" 28 #define __OPPCONCAT1(x,y) x##y 29 #define __OPPCONCAT2(prefix,line) __OPPCONCAT1(prefix,line) 30 #define MAKE_UNIQUE_WITHIN_FILE(prefix) __OPPCONCAT2(prefix,__LINE__) 34 #define __ONSTARTUP_FUNC MAKE_UNIQUE_WITHIN_FILE(__onstartup_func_) 35 #define __ONSTARTUP_OBJ MAKE_UNIQUE_WITHIN_FILE(__onstartup_obj_) 38 #define __FILEUNIQUENAME__ MAKE_UNIQUE_WITHIN_FILE(__uniquename_) 41 #define RELEASE_OPPSIM_MAGIC_NUMBER 0x12345678 52 #define EXECUTE_ON_STARTUP(CODE) \ 54 void __ONSTARTUP_FUNC() {CODE;} \ 55 static omnetpp::CodeFragments __ONSTARTUP_OBJ(__ONSTARTUP_FUNC, omnetpp::CodeFragments::STARTUP); \ 67 #define EXECUTE_ON_SHUTDOWN(CODE) \ 69 void __ONSTARTUP_FUNC() {CODE;} \ 70 static omnetpp::CodeFragments __ONSTARTUP_OBJ(__ONSTARTUP_FUNC, omnetpp::CodeFragments::SHUTDOWN); \ 81 enum Type {STARTUP, SHUTDOWN};
90 static void executeAll(Type type);
Supporting class for the EXECUTE_ON_STARTUP and EXECUTE_ON_SHUTDOWN macros.
Definition: onstartup.h:78
Definition: cabstracthistogram.h:21