32 #define DECLARE_INTERCEPT_SYMBOLS(APP) \
44 extern "C"
void dispatchStepping(FairMCApplication *,
char const *libname,
char const *);
45 extern "C"
void dispatchFinishEvent(FairMCApplication *,
char const *libname,
char const *);
46 extern "C"
void dispatchFinishRun(FairMCApplication *,
char const *libname,
char const *);
50 #define INTERCEPT_STEPPING(APP, LIB, SYMBOL) \
51 void APP::Stepping() \
53 auto baseptr = reinterpret_cast<FairMCApplication *>(this); \
54 performLogging(baseptr); \
55 dispatchStepping(baseptr, LIB, SYMBOL); \
58 #define INTERCEPT_FINISHEVENT(APP, LIB, SYMBOL) \
59 void APP::FinishEvent() \
61 auto baseptr = reinterpret_cast<FairMCApplication *>(this); \
63 dispatchFinishEvent(baseptr, LIB, SYMBOL); \
66 #define INTERCEPT_FINISHRUN(APP, LIB, SYMBOL) \
67 void APP::FinishRun() \
69 auto baseptr = reinterpret_cast<FairMCApplication *>(this); \
71 dispatchFinishRun(baseptr, LIB, SYMBOL); \
#define INTERCEPT_FINISHEVENT(APP, LIB, SYMBOL)
void dispatchFinishEvent(FairMCApplication *, char const *libname, char const *)
#define INTERCEPT_FINISHRUN(APP, LIB, SYMBOL)
void dispatchStepping(FairMCApplication *, char const *libname, char const *)
#define INTERCEPT_STEPPING(APP, LIB, SYMBOL)
void dispatchFinishRun(FairMCApplication *, char const *libname, char const *)
#define DECLARE_INTERCEPT_SYMBOLS(APP)
void performLogging(FairMCApplication *)