Files
znc/include/znc/defines.h
T
Alexey Sokolov e354c24ac1 Move ZNC headers into own directory.
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00

32 lines
767 B
C

/*
* Copyright (C) 2004-2011 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef _DEFINES_H
#define _DEFINES_H
#include <znc/zncconfig.h>
// This header file is just for Csocket
#include <znc/ZNCDebug.h>
#include <znc/ZNCString.h>
#define CS_STRING CString
#define _NO_CSOCKET_NS
#ifdef _DEBUG
#define __DEBUG__
#endif
// Redefine some Csocket debugging mechanisms to use ZNC's
#define CS_DEBUG(f) DEBUG(__FILE__ << ":" << __LINE__ << " " << f)
#define PERROR(f) DEBUG(__FILE__ << ":" << __LINE__ << " " << f << ": " << strerror(GetSockError()))
#endif // !_DEFINES_H