From 9e45442d8661948d76190f2fd524642fe300e360 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Fri, 2 Oct 2026 18:36:33 +0200 Subject: [PATCH] still working on debugs and errors --- UDPTCPNetwork.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UDPTCPNetwork.h b/UDPTCPNetwork.h index 526abe0..d0236cd 100644 --- a/UDPTCPNetwork.h +++ b/UDPTCPNetwork.h @@ -75,14 +75,14 @@ int file_is_readable (const char *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_enable_debug (int enable); #ifndef UDPTCPNETWORK_DISABLE_DEBUG #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 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) #endif