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

Go to the source code of this file.

Macros

#define LUCI_ASSERT(condition, msg)
 

Macro Definition Documentation

◆ LUCI_ASSERT

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

Definition at line 26 of file Check.h.

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