从 lynx_value 中读取 bool 值
lynx_api_status lynx_value_get_bool(lynx_api_env env, lynx_value value, bool* result);
Returns lynx_api_ok if the API succeeded. Returns lynx_api_bool_expected if the types do not match.
lynx_api_ok
lynx_api_bool_expected
bool ret; lynx_api_status status = lynx_value_get_bool(env, value, &ret); if (status != lynx_api_ok) { // handle error. }