cBindValue
CVarHandle* cBindValue(const cvar& value);
Creates an owned C handle containing a snapshot of the native value.
Language bindings
Convert between native C++ values and explicitly selected C binding adapters.
#include <mc/CBindings.h>Both directions copy a snapshot. The returned C handle is owned by the caller and must be released with cVarRelease().
Opaque pointers, borrowed references, and native CObject instances require separate bindings; these helpers do not infer one.
CVarHandle* cBindValue(const cvar& value);
Creates an owned C handle containing a snapshot of the native value.
cvar cUnbindValue(const CVarHandle* value);
Copies a native value from a live C handle.