ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Assert.h File Reference
#include "Logging.h"

Go to the source code of this file.

Macros

#define ASSERT(v)
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   v)
Value:
do \
{ \
if (!(v)) \
{ \
LOG(ERROR) << "'" << #v << "' failed at " << __FILE__ << ":" << __LINE__ << "'\n"; \
abort(); \
} \
} while (0)

Definition at line 24 of file Assert.h.

26 { \
27 if (!(v)) \
28 { \
29 LOG(ERROR) << "'" << #v << "' failed at " << __FILE__ << ":" << __LINE__ << "'\n"; \
30 abort(); \
31 } \
32 } while (0)