Skip to content

Commit f8af4b6

Browse files
author
Pascal Boeschoten
committed
Added 'PDA_' prefix to 'WarningHandler' and 'ErrorHandler' functions to avoid naming clashes
1 parent f2ea588 commit f8af4b6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/pda/debug.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ DebugPrintf
107107
...
108108
);
109109

110-
#define WARN( ... ) WarningHandler( __FILE__, __LINE__, __VA_ARGS__ );
110+
#define WARN( ... ) PDA_WarningHandler( __FILE__, __LINE__, __VA_ARGS__ );
111111

112112
void
113-
WarningHandler
113+
PDA_WarningHandler
114114
(
115115
const char *file,
116116
const uint64_t line,
@@ -129,17 +129,17 @@ WarningHandler
129129
#endif /*DEBUG*/
130130

131131
/*! Can be called if an unrecoverable error appeared. **/
132-
#define ERROR( errorcode, ... ) ErrorHandler( errorcode, __FILE__, __LINE__, __VA_ARGS__ );
132+
#define ERROR( errorcode, ... ) PDA_ErrorHandler( errorcode, __FILE__, __LINE__, __VA_ARGS__ );
133133

134134
/*! Issue an error to the debug output and jump to the goto label. **/
135135
#define ERROR_EXIT( errorcode, gotolabel, ... ) { \
136-
ErrorHandler( errorcode, __FILE__, __LINE__, __VA_ARGS__ ); \
136+
PDA_ErrorHandler( errorcode, __FILE__, __LINE__, __VA_ARGS__ ); \
137137
goto gotolabel; \
138138
}
139139

140140
/* @cond SHOWHIDDEN */
141141
int64_t
142-
ErrorHandler
142+
PDA_ErrorHandler
143143
(
144144
const int64_t errorcode,
145145
const char *file,

src/debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ DebugInit()
157157

158158

159159
int64_t
160-
ErrorHandler
160+
PDA_ErrorHandler
161161
(
162162
const int64_t errorcode,
163163
const char *file,
@@ -237,7 +237,7 @@ DebugPrintf
237237

238238

239239
void
240-
WarningHandler
240+
PDA_WarningHandler
241241
(
242242
const char *file,
243243
const uint64_t line,

0 commit comments

Comments
 (0)