mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
bc_tester: fix INLINE macro for win32
This commit is contained in:
parent
ed82602038
commit
b7f7eba5cf
2 changed files with 9 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit af9a3f7f992fa4fbb7f889c96607b48cccf1a8e4
|
||||
Subproject commit e5a58ca1dc68618dc0e7d33ba3226bbc6121629e
|
||||
|
|
@ -114,7 +114,7 @@ char * bc_tester_res(const char *name);
|
|||
char * bc_tester_file(const char *name);
|
||||
|
||||
|
||||
/*Redefine the CU_... macros WITHOUT final ';' semicolon, to allow IF conditions and with smarter error message */
|
||||
/*Redefine the CU_... macros WITHOUT final ';' semicolon, to allow IF conditions and smarter error message */
|
||||
extern int CU_assertImplementation(int bValue,
|
||||
unsigned int uiLine,
|
||||
const char *strCondition,
|
||||
|
|
@ -122,7 +122,13 @@ extern int CU_assertImplementation(int bValue,
|
|||
const char *strFunction,
|
||||
int bFatal);
|
||||
|
||||
static inline int _BC_ASSERT(const char* file, int line, int predicate, const char* format, int fatal) {
|
||||
#ifdef _WIN32
|
||||
#define BC_INLINE __inline
|
||||
#else
|
||||
#define BC_INLINE inline
|
||||
#endif
|
||||
|
||||
static BC_INLINE int _BC_ASSERT(const char* file, int line, int predicate, const char* format, int fatal) {
|
||||
if (!predicate) bc_tester_printf(bc_printf_verbosity_info, format, NULL);
|
||||
return CU_assertImplementation(predicate, line, format, file, "", fatal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue