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
 
#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
Value:
/* LCOV_EXCL_START */ [[unlikely]] kuzu::common::kuAssertFailureInternal("KU_UNREACHABLE", \
__FILE__, __LINE__) /* LCOV_EXCL_STOP */
void kuAssertFailureInternal(const char *condition_name, const char *file, int linenr)
Definition assert.h:9

◆ KU_UNUSED

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

◆ RUNTIME_CHECK

#define RUNTIME_CHECK ( code)
Value:
code