summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-20 00:40:14 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-20 00:40:14 +0000
commitde7b668ad121c193cd874c8e56fa5704407315a9 (patch)
tree5de65134576afa755b1a902e101658ec3c6d6c43 /include
parent396cee7d0d008cfdbbb9eb5398e24f2f0df27912 (diff)
Removed the file name arg from MODULE_INIT
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2510 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/services.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/services.h b/include/services.h
index e0ec8a609..a6469419b 100644
--- a/include/services.h
+++ b/include/services.h
@@ -192,11 +192,11 @@ extern int strncasecmp(const char *, const char *, size_t);
* It defines the class factory and external init_module function.
*/
#ifdef _WIN32
- #define MODULE_INIT(x, y) \
+ #define MODULE_INIT(x) \
extern "C" DllExport Module *init_module(const std::string &, const std::string &); \
- extern "C" Module *init_module(const std::string &, const std::string &creator) \
+ extern "C" Module *init_module(const std::string &modname, const std::string &creator) \
{ \
- return new y(x, creator); \
+ return new x(modname, creator); \
} \
BOOLEAN WINAPI DllMain(HINSTANCE, DWORD nReason, LPVOID) \
{ \
@@ -208,19 +208,19 @@ extern int strncasecmp(const char *, const char *, size_t);
} \
return TRUE; \
} \
- extern "C" DllExport void destroy_module(y *); \
- extern "C" void destroy_module(y *m) \
+ extern "C" DllExport void destroy_module(x *); \
+ extern "C" void destroy_module(x *m) \
{ \
delete m; \
}
#else
- #define MODULE_INIT(x, y) \
- extern "C" DllExport Module *init_module(const std::string &, const std::string &creator) \
+ #define MODULE_INIT(x) \
+ extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \
{ \
- return new y(x, creator); \
+ return new x(modname, creator); \
} \
- extern "C" DllExport void destroy_module(y *m) \
+ extern "C" DllExport void destroy_module(x *m) \
{ \
delete m; \
}