summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-18 15:14:31 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-18 15:14:31 +0000
commit7cb909b0f3378b7f8f7e2e2fe067685c9e788f6c (patch)
treea83b537d34e2f42c8d8906d0ebdb70f4030e8dfb /include
parentd1dae54d89444e23cff2a96d020010415c548e3d (diff)
PURE_STATIC fixes to use normal <module> tags
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12641 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 8b2452494..5a9cb90e2 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1670,8 +1670,11 @@ struct AllModuleList {
};
#define MODULE_INIT(x) static Module* MK_ ## x() { return new x; } \
- static const AllModuleList PREP_ ## x(&MK_ ## x, #x);
+ static const AllModuleList PREP_ ## x(&MK_ ## x, MODNAMESTR);
+#define MODNAMESTR MODNAMESTR_FN_2(MODNAME)
+#define MODNAMESTR_FN_2(x) MODNAMESTR_FN_1(x)
+#define MODNAMESTR_FN_1(x) #x
#else