Throws if a freshly returned C handle is null, otherwise passes it through.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

template<typename T>
T
check(T ptr);

Return Value

ptr unchanged when it is non‐null.

Parameters

Name

Description

ptr

The pointer returned by a btck_* creation function.

Created with MrDocs