lynx_value_create_int64

Introduction

Create a lynx_value of type int64_t with given value.

Syntax

lynx_api_status lynx_value_create_int64(lynx_api_env env,
                                        int64_t value,
                                        lynx_value* result);

Parameters

KeyDescription
[in] envThe environment in which lynx value runs, typically nullptr.
[in] value64-bit integer value to be represented in lynx_value.
[out] resultA lynx_value representing a int64_t.

Return Value

Returns lynx_api_ok if the API succeeded.

Example

lynx_value val;
lynx_api_status status = lynx_value_create_int64(env, 100, &val);
if (status != lynx_api_ok) {
  // handle error.
}
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.