1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-09 14:52:52 +08:00
proxychains-ng/src/debug.h

25 lines
599 B
C
Raw Normal View History

#ifndef DEBUG_H
#define DEBUG_H
# include <stdio.h>
2020-09-21 00:00:10 +08:00
#ifdef DEBUG
# define PSTDERR(fmt, args...) do { dprintf(2,fmt, ## args); } while(0)
# define PDEBUG(fmt, args...) PSTDERR("DEBUG:"fmt, ## args)
2015-06-14 17:53:33 +08:00
# define DEBUGDECL(args...) args
2020-09-21 00:00:10 +08:00
# define DUMP_PROXY_CHAIN(A, B) dump_proxy_chain(A, B)
#else
# define PDEBUG(fmt, args...) do {} while (0)
2015-06-14 17:53:33 +08:00
# define DEBUGDECL(args...)
# define DUMP_PROXY_CHAIN(args...) do {} while (0)
#endif
# define PFUNC() do { PDEBUG("pid[%d]:%s\n", getpid(), __FUNCTION__); } while(0)
2020-09-21 00:00:10 +08:00
#include "core.h"
void dump_proxy_chain(proxy_data *pchain, unsigned int count);
#endif