ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Check.h File Reference
#include <pepper/str.h>
#include <stdexcept>
#include <cassert>
#include <iostream>

Go to the source code of this file.

Macros

#define EXO_ASSERT(condition, msg)
 

Macro Definition Documentation

◆ EXO_ASSERT

#define EXO_ASSERT (   condition,
  msg 
)
Value:
{ \
if (!(condition)) \
{ \
std::cerr << "[assert failed] " << (msg) << ". " << std::endl; \
assert((condition)); \
} \
}

Definition at line 28 of file Check.h.

29 { \
30 if (!(condition)) \
31 { \
32 std::cerr << "[assert failed] " << (msg) << ". " << std::endl; \
33 assert((condition)); \
34 } \
35 }