|
|
|
@ -75,14 +75,14 @@ int file_is_readable (const char *fname);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UDPTCPNetwork_debug_set_logfile (std::string fname);
|
|
|
|
void UDPTCPNetwork_debug_set_logfile (std::string fname);
|
|
|
|
void UDPTCPNetwork_debug (char *srcfile, int srcline, char *srcfunc, char *fmt,...);
|
|
|
|
void UDPTCPNetwork_debug (int force,char *srcfile, int srcline, char *srcfunc, char *fmt,...);
|
|
|
|
void UDPTCPNetwork_errorexit (char *srcfile, int srcline, char *srcfunc, char *fmt,...);
|
|
|
|
void UDPTCPNetwork_errorexit (char *srcfile, int srcline, char *srcfunc, char *fmt,...);
|
|
|
|
void UDPTCPNetwork_enable_debug (int enable);
|
|
|
|
void UDPTCPNetwork_enable_debug (int enable);
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef UDPTCPNETWORK_DISABLE_DEBUG
|
|
|
|
#ifndef UDPTCPNETWORK_DISABLE_DEBUG
|
|
|
|
#define debug(...) UDPTCPNetwork_debug (0, (char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define debug(...) UDPTCPNetwork_debug (0, (char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define debugerror(...) UDPTCPNetwork_debug (0, (char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define debugerror(...) UDPTCPNetwork_debug (0, (char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define errorexit(...) UDPTCPNetwork_errorexit (1, (char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define errorexit(...) UDPTCPNetwork_errorexit ((char*)__FILE__, __LINE__, (char*)__FUNCTION__, (char*)__VA_ARGS__)
|
|
|
|
#define debug_enable(enable) UDPTCPNetwork_enable_debug (enable)
|
|
|
|
#define debug_enable(enable) UDPTCPNetwork_enable_debug (enable)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|