Kùzu C++ API
Loading...
Searching...
No Matches
assert.h File Reference
#include "internal.h"
#include "string_format.h"

Go to the source code of this file.

Namespaces

namespace  kuzu
 
namespace  kuzu::common
 

Macros

#define RUNTIME_CHECK(code)
 
#define KU_ASSERT(condition)
 
#define KU_UNREACHABLE    [[unlikely]] kuzu::common::kuAssertFailureInternal("KU_UNREACHABLE", __FILE__, __LINE__)
 
#define KU_UNUSED(expr)
 

Functions

void kuzu::common::kuAssertFailureInternal (const char *condition_name, const char *file, int linenr)
 

Macro Definition Documentation

◆ KU_ASSERT

#define KU_ASSERT ( condition)
Value:
static_cast<bool>(condition) ? \
void(0) : \
kuzu::common::kuAssertFailureInternal(#condition, __FILE__, __LINE__)

◆ KU_UNREACHABLE

#define KU_UNREACHABLE    [[unlikely]] kuzu::common::kuAssertFailureInternal("KU_UNREACHABLE", __FILE__, __LINE__)

◆ KU_UNUSED

#define KU_UNUSED ( expr)
Value:
(void)(expr)

◆ RUNTIME_CHECK

#define RUNTIME_CHECK ( code)
Value:
code