Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
static_execute.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define STATIC_EXECUTE(MY_FUNC)
 

Macro Definition Documentation

◆ STATIC_EXECUTE

#define STATIC_EXECUTE (   MY_FUNC)
Value:
struct StaticExecutorWrapper { \
struct Executor { \
template <class Func> \
Executor(Func func) \
{ \
func(); \
} \
}; \
static Executor executor; \
}; \
\
StaticExecutorWrapper::Executor StaticExecutorWrapper::executor{MY_FUNC};

Definition at line 18 of file static_execute.h.