mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 13:03:50 +00:00
32 lines
676 B
C
32 lines
676 B
C
/* -*- coding: utf-8 -*-
|
|
* ----------------------------------------------------------------------
|
|
* Copyright © 2010-2012, RedJack, LLC.
|
|
* All rights reserved.
|
|
*
|
|
* Please see the LICENSE.txt file in this distribution for license
|
|
* details.
|
|
* ----------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef IPSET_LOGGING_H
|
|
#define IPSET_LOGGING_H
|
|
|
|
|
|
#if !defined(IPSET_DEBUG)
|
|
#define IPSET_DEBUG 0
|
|
#endif
|
|
|
|
#if IPSET_DEBUG
|
|
#include <stdio.h>
|
|
#define DEBUG(...) \
|
|
do { \
|
|
fprintf(stderr, __VA_ARGS__); \
|
|
fprintf(stderr, "\n"); \
|
|
} while (0)
|
|
#else
|
|
#define DEBUG(...) /* no debug messages */
|
|
#endif
|
|
|
|
|
|
#endif /* IPSET_LOGGING_H */
|