Deukhoofd a8730d983f
All checks were successful
continuous-integration/drone/push Build is passing
Used ClangFormat style guide I'm happy with.
2019-11-28 12:55:22 +01:00

11 lines
1.1 KiB
C++

#define HOOK(hookName, source, ...) \
{ \
auto aggregator = source->GetScriptIterator(); \
while (aggregator.HasNext()) { \
auto next = aggregator.GetNext(); \
if (next == nullptr) \
continue; \
next->hookName(__VA_ARGS__); \
} \
}