From 8710724b5518ae9858309e548514f76e620a8459 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 26 Jun 2013 17:01:33 -0400 Subject: Change the syntax of FOREACH macros to be less dumb. --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index ca312c4a5..26e91f876 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -62,7 +62,7 @@ Event::Event(Module* src, const std::string &eventid) : source(src), id(eventid) void Event::Send() { - FOREACH_MOD(I_OnEvent,OnEvent(*this)); + FOREACH_MOD(OnEvent, (*this)); } // These declarations define the behavours of the base class Module (which does nothing at all) @@ -329,7 +329,7 @@ void ModuleManager::DoSafeUnload(Module* mod) // First, notify all modules that a module is about to be unloaded, so in case // they pass execution to the soon to be unloaded module, it will happen now, // i.e. before we unregister the services of the module being unloaded - FOREACH_MOD(I_OnUnloadModule,OnUnloadModule(mod)); + FOREACH_MOD(OnUnloadModule, (mod)); std::map::iterator modfind = Modules.find(mod->ModuleSourceFile); -- cgit v1.3.1-10-gc9f91