]> jfr.im git - irc/rizon/znc.git/blame - main.h
Increase the version number to 0.062
[irc/rizon/znc.git] / main.h
CommitLineData
a09a7e79 1/*
eeec633e 2 * Copyright (C) 2004-2008 See the AUTHORS file for details.
a09a7e79 3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
7 */
6dcacaa7 8
538d3ece 9#ifndef _MAIN_H
10#define _MAIN_H
11
4f7b9046 12// Keep the number in sync with configure.in (and also with configure)
16aabebc 13#define VERSION 0.062
e4de3c42 14
edb56b16 15// You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS!
16#ifndef VERSION_EXTRA
17#define VERSION_EXTRA ""
18#endif
19
668de5ac 20#ifndef _MODDIR_
1360effd 21#define _MODDIR_ "/usr/lib/znc"
22#endif
23
24#ifndef _DATADIR_
25#define _DATADIR_ "/usr/share/znc"
668de5ac 26#endif
538d3ece 27
3dde793e 28#ifdef _MODULES
b740d7cc 29#define MODULECALL(macFUNC, macUSER, macCLIENT, macEXITER) \
30 if (macUSER) { \
31 CGlobalModules& GMods = CZNC::Get().GetModules(); \
32 CModules& UMods = macUSER->GetModules(); \
33 GMods.SetUser(macUSER); GMods.SetClient(macCLIENT); \
34 UMods.SetClient(macCLIENT); \
35 if (GMods.macFUNC || UMods.macFUNC) { \
36 GMods.SetUser(NULL); GMods.SetClient(NULL); \
37 UMods.SetClient(NULL); \
38 macEXITER; \
39 } \
40 GMods.SetUser(NULL); GMods.SetClient(NULL); \
41 UMods.SetClient(NULL); \
3dde793e 42 }
43#else
b740d7cc 44#define MODULECALL(macFUNC, macUSER, macCLIENT, macEXITER)
3dde793e 45#endif
46
3dde793e 47
538d3ece 48#ifndef CS_STRING
beb5b49b 49#define CS_STRING CString
538d3ece 50#endif
51
52#ifndef _NO_CSOCKET_NS
53#define _NO_CSOCKET_NS
54#endif
55
7a127841 56#ifdef _DEBUG
57#define __DEBUG__
58#endif
59
2d1602ec 60#include <iostream>
61using std::cout;
62using std::cerr;
63using std::endl;
64
fb0ccc3c 65#include <limits.h>
b772e266 66#ifndef PATH_MAX
67#define PATH_MAX 1024
f88c7384 68#warning PATH_MAX is undefined
b772e266 69#endif
70
57f4288c 71#include "ZNCString.h"
538d3ece 72
73#endif // !_MAIN_H