Skip to content

Commit

Permalink
Fix name clash in r2
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Tielen authored and trufae committed Aug 8, 2023
1 parent 7c36c2c commit af9ca43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/sdb/asserts.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ extern "C" {
#elif SDB_CHECKS_LEVEL == 1 || SDB_CHECKS_LEVEL == 2 // SDB_CHECKS_LEVEL

#if SDB_CHECKS_LEVEL == 1
#define H_LOG_(loglevel, fmt, ...)
#define SDB_LOG_(fmt, ...)
#else
#define H_LOG_(loglevel, fmt, ...) eprintf (fmt, __VA_ARGS__)
#define SDB_LOG_(fmt, ...) eprintf (fmt, __VA_ARGS__)
#endif

/**
Expand All @@ -61,15 +61,15 @@ extern "C" {
#define sdb_return_if_fail(expr) \
do { \
if (!(expr)) { \
H_LOG_ ("%s: assertion '%s' failed (line %d)", SDB_FUNCTION, #expr, __LINE__); \
SDB_LOG_ ("%s: assertion '%s' failed (line %d)", SDB_FUNCTION, #expr, __LINE__); \
return; \
} \
} while (0)

#define sdb_return_val_if_fail(expr, val) \
do { \
if (!(expr)) { \
H_LOG_ ("%s: assertion '%s' failed (line %d)", SDB_FUNCTION, #expr, __LINE__); \
SDB_LOG_ ("%s: assertion '%s' failed (line %d)", SDB_FUNCTION, #expr, __LINE__); \
return (val); \
} \
} while (0)
Expand Down

0 comments on commit af9ca43

Please sign in to comment.