Retain a value beyond the current callback.
The retained handle refers to the same value; objects are not deep-copied.
- Parameters
-
| call | Borrowed callback access. Must not be saved or freed. |
| value | Borrowed source handle. Its ownership is unchanged. |
| [out] | out | Receives a separately retained handle. Must be released once with detlef_sdk_release(), or is released during runtime destruction. |
- Returns
- DETLEF_SDK_OK on success, otherwise a native failure status or Wasm exception.
- See also
- detlef_sdk_argument(), detlef_sdk_release().