24#include "ModulesIoC.h"
26#define INJECT(Interface, getter) \
28 static inline std::shared_ptr<Interface> _##getter = nullptr; \
31 static std::shared_ptr<Interface> getter() \
35 _##getter = modularity::ioc()->resolve<Interface>(); \
39 static void set##getter(std::shared_ptr<Interface> impl) { _##getter = impl; }
44 return ModulesIoC::instance();
Definition ModulesIoC.h:30