refact: rename taosAssert
This commit is contained in:
parent
80158dcc11
commit
1c04c97362
|
@ -83,8 +83,8 @@ void taosPrintLongString(const char *flags, ELogLevel level, int32_t dflag, cons
|
|||
#endif
|
||||
;
|
||||
|
||||
bool taosAssertLog(bool condition, const char *file, int32_t line, const char *format, ...);
|
||||
#define ASSERTS(condition, ...) taosAssertLog(condition, __FILE__, __LINE__, __VA_ARGS__)
|
||||
bool taosAssert(bool condition, const char *file, int32_t line, const char *format, ...);
|
||||
#define ASSERTS(condition, ...) taosAssert(condition, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define ASSERT(condition) ASSERTS(condition, "assert info not provided")
|
||||
|
||||
// clang-format off
|
||||
|
|
|
@ -780,7 +780,7 @@ cmp_end:
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool taosAssertLog(bool condition, const char *file, int32_t line, const char *format, ...) {
|
||||
bool taosAssert(bool condition, const char *file, int32_t line, const char *format, ...) {
|
||||
if (condition) return false;
|
||||
|
||||
const char *flags = "UTL FATAL ";
|
||||
|
|
Loading…
Reference in New Issue