Obtain one argument, evaluating it when called from a control.
Functions receive their already evaluated argument. Controls evaluate the requested expression on each call, so repeated calls may repeat side effects.
- Parameters
-
| call | Borrowed callback access. Must not be saved or freed. |
| index | Zero-based argument index. |
| [out] | out | Receives a callback-local handle, released automatically at callback exit. Must be retained before being saved for a later callback. |
- Returns
- DETLEF_SDK_OK on success. An invalid index or evaluation failure returns a native status or aborts the Wasm callback with an exception.