diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-19 17:10:01 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-19 17:10:01 +0200 |
commit | b65fb065b5a77aeea056f88e1b8d96ec8fbea47c (patch) | |
tree | 058eb3df2e163ae49557261f097562407d61ea08 | |
parent | 437e9f662fad9357fec11eed934690fd90f753a6 (diff) |
Fix undefined symbol error on module load if compiled with Clang 3.4
Fixes issue #803 reported by @SaberUK
-rw-r--r-- | include/caller.h | 18 | ||||
-rw-r--r-- | include/modules.h | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/caller.h b/include/caller.h index 64b37611f..05049df8b 100644 --- a/include/caller.h +++ b/include/caller.h @@ -136,7 +136,7 @@ template <typename ReturnType> class CoreExport caller0 : public caller< Handler : caller< HandlerBase0<ReturnType> >::caller(initial) { } - virtual ReturnType operator() () + ReturnType operator() () { return this->target->Call(); } @@ -149,7 +149,7 @@ template <typename ReturnType, typename Param1> class CoreExport caller1 : publi : caller< HandlerBase1<ReturnType, Param1> >(initial) { } - virtual ReturnType operator() (Param1 param1) + ReturnType operator() (Param1 param1) { return this->target->Call(param1); } @@ -162,7 +162,7 @@ template <typename ReturnType, typename Param1, typename Param2> class CoreExpor : caller< HandlerBase2<ReturnType, Param1, Param2> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2) + ReturnType operator() (Param1 param1, Param2 param2) { return this->target->Call(param1, param2); } @@ -175,7 +175,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase3<ReturnType, Param1, Param2, Param3> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3) { return this->target->Call(param1, param2, param3); } @@ -188,7 +188,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase4<ReturnType, Param1, Param2, Param3, Param4> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4) { return this->target->Call(param1, param2, param3, param4); } @@ -201,7 +201,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase5<ReturnType, Param1, Param2, Param3, Param4, Param5> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5) { return this->target->Call(param1, param2, param3, param4, param5); } @@ -214,7 +214,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase6<ReturnType, Param1, Param2, Param3, Param4, Param5, Param6> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6) { return this->target->Call(param1, param2, param3, param4, param5, param6); } @@ -227,7 +227,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase7<ReturnType, Param1, Param2, Param3, Param4, Param5, Param6, Param7> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7) { return this->target->Call(param1, param2, param3, param4, param5, param6, param7); } @@ -240,7 +240,7 @@ template <typename ReturnType, typename Param1, typename Param2, typename Param3 : caller< HandlerBase8<ReturnType, Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8> >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7, Param8 param8) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7, Param8 param8) { return this->target->Call(param1, param2, param3, param4, param5, param6, param7, param8); } diff --git a/include/modules.h b/include/modules.h index c0d852b09..eef8c61c9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -116,7 +116,7 @@ struct ModResult { * and numerical comparisons in preprocessor macros if they wish to support * multiple versions of InspIRCd in one file. */ -#define INSPIRCD_VERSION_API 7 +#define INSPIRCD_VERSION_API 8 /** * This #define allows us to call a method in all |