Increment the reference count by 1 for pointer data.
| Key | Description |
|---|---|
| [in] env | The environment in which lynx value runs, typically nullptr. |
| [in] value | lynx_value to be added ref. |
| [out] result | preserve fields. |
Returns lynx_api_ok if the API succeeded.