ZNC
trunk
include
znc
include/znc/defines.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2004-2024 ZNC, see the NOTICE file for details.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef ZNC_DEFINES_H
18
#define ZNC_DEFINES_H
19
20
#include <znc/zncconfig.h>
21
22
// This header file is just for Csocket
23
24
#include <
znc/ZNCDebug.h
>
25
#include <
znc/ZNCString.h
>
26
27
#define CS_STRING CString
28
#define _NO_CSOCKET_NS
29
30
#ifdef _DEBUG
31
#define __DEBUG__
32
#endif
33
34
// Redefine some Csocket debugging mechanisms to use ZNC's
35
#define CS_DEBUG(f) DEBUG(__FILE__ << ":"
<< __LINE__ << " " << f)
36
#define PERROR(f) \
37
DEBUG(__FILE__ << ":"
<< __LINE__ << " " << f << ": " \
38
<< strerror(GetSockError()))
39
40
#endif
// !ZNC_DEFINES_H
ZNCDebug.h
ZNCString.h
Generated on Fri Nov 1 2024 15:56:15 for ZNC by
1.9.1