chore: avoid C++ warning
This commit is contained in:
parent
ac5afd6b71
commit
6ca944f453
1 changed files with 2 additions and 0 deletions
|
|
@ -41,12 +41,14 @@ extern "C" {
|
|||
#define LEAN_ALWAYS_INLINE
|
||||
#endif
|
||||
|
||||
#ifndef assert
|
||||
#ifdef NDEBUG
|
||||
#define assert(expr)
|
||||
#else
|
||||
void lean_notify_assert(const char * fileName, int line, const char * condition);
|
||||
#define assert(expr) { if (LEAN_UNLIKELY(!(expr))) lean_notify_assert(__FILE__, __LINE__, #expr); }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define LEAN_EXPORT __declspec(dllexport)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue