* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
#ifndef __CALLER__H__
#define __CALLER__H__
-/* The templates below can be auto generated by tools/create_templates.pl.
+/** The templates below can be auto generated by tools/create_templates.pl.
* They are used to represent a functor with a given number of parameters and
* a specific return type. To prevent passing the wrong number of parameters
* and have the compiler detect this error at build-time, each class is numbered
* this until you do, as if you get this wrong, this can generate some pretty long
* winded and confusing error messages at compile time.
*/
-
template <typename ReturnType> class CoreExport HandlerBase0
{
public:
* The following parameters are the parameter types for Call(), and again, the macro is numbered to match the number of
* parameters, to prevent mistakes.
*/
-
#define DEFINE_HANDLER0(NAME, RETURN) \
class CoreExport NAME : public HandlerBase0<RETURN> { InspIRCd* Server; public: NAME(InspIRCd* Srv) : Server(Srv) { } virtual ~NAME() { } virtual RETURN Call(); }