mirror of
https://github.com/znc/znc.git
synced 2026-08-12 03:42:48 +02:00
Fixed bugs while using --disable-modules
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@254 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
|
||||
#define VERSION 0.034
|
||||
#define MODULEDEFS(CLASS) extern "C" { CModule* Load(void* p, CUser* pUser, const CString& sModName); void Unload(CModule* pMod); double GetVersion(); } double GetVersion() { return VERSION; } CModule* Load(void* p, CUser* pUser, const CString& sModName) { return new CLASS(p, pUser, sModName); } void Unload(CModule* pMod) { if (pMod) { delete pMod; } }
|
||||
#define MODCONSTRUCTOR(CLASS) CLASS(void *pDLL, CUser* pUser, const CString& sModName) : CModule(pDLL, pUser, sModName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user