1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 12:43:13 +02:00

Correct MODULE_INIT macro to account for new parameter.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1576 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-08 00:09:20 +00:00
parent ae6dd5d9c5
commit 68d0a515d0
+4 -4
View File
@@ -188,10 +188,10 @@ extern int strncasecmp(const char *, const char *, size_t);
* It defines the class factory and external init_module function.
*/
#ifdef _WIN32
#define MODULE_INIT(y) \
#define MODULE_INIT(x, y) \
extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \
{ \
return new y(creator); \
return new y(x, creator); \
} \
BOOLEAN WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved) \
{ \
@@ -204,10 +204,10 @@ extern int strncasecmp(const char *, const char *, size_t);
return TRUE; \
}
#else
#define MODULE_INIT(y) \
#define MODULE_INIT(x, y) \
extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \
{ \
return new y(creator); \
return new y(x, creator); \
}
#endif