From 7cb909b0f3378b7f8f7e2e2fe067685c9e788f6c Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 18 Mar 2010 15:14:31 +0000 Subject: PURE_STATIC fixes to use normal tags git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12641 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3