btck::check

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

NameDescription
ptrThe pointer returned by a btck_* creation function.