Home
last modified time | relevance | path

Searched refs:status (Results 1 - 25 of 62) sorted by relevance

123

/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/
H A Dcjsonparsecase.cpp20 napi_status status; in getCjsonChildOut2() local
24 status = napi_create_int32(env, jsonChild->type, &childTypeOut); in getCjsonChildOut2()
25 if (status != napi_ok) { in getCjsonChildOut2()
26 getErrMessage(status, env, extended_error_info, "napi_create_int32 jsonChild->type", tag); in getCjsonChildOut2()
29 status = napi_set_named_property(env, childOut, "type", childTypeOut); in getCjsonChildOut2()
30 if (status != napi_ok) { in getCjsonChildOut2()
31 getErrMessage(status, env, extended_error_info, "napi_set_named_property jsonChild->type", tag); in getCjsonChildOut2()
35 status = napi_create_int32(env, jsonChild->valueint, &childValueintOut); in getCjsonChildOut2()
36 if (status != napi_ok) { in getCjsonChildOut2()
37 getErrMessage(status, en in getCjsonChildOut2()
61 napi_status status; getCjsonChildOut() local
97 napi_status status; getCjsonNextOut2() local
138 napi_status status; getCjsonNextOut() local
174 napi_status status; getCjsonparseInfo() local
216 napi_status status; getCjsonparseOut1() local
269 napi_status status; getCjsonparseOut2() local
323 napi_status status; getCjsonparseOut3() local
383 napi_status status; getCjsonparseOut4() local
446 napi_status status; KH418_CJSON_Parse() local
[all...]
H A Dcjsoncreateobjectcase.cpp20 napi_status status; in getSampleCreateObjNextOut() local
28 status = napi_create_object(env, &nextOut); in getSampleCreateObjNextOut()
29 if (status != napi_ok) { in getSampleCreateObjNextOut()
30 getErrMessage(status, env, extended_error_info, "napi_create_object", tag); in getSampleCreateObjNextOut()
39 status = napi_set_named_property(env, cJSON_CreateObjectOut, "next", nextOut); in getSampleCreateObjNextOut()
40 if (status != napi_ok) { in getSampleCreateObjNextOut()
42 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getSampleCreateObjNextOut()
50 napi_status status; in getSampleCreateObjPrevOut() local
58 status = napi_create_object(env, &prevOut); in getSampleCreateObjPrevOut()
59 if (status ! in getSampleCreateObjPrevOut()
80 napi_status status; getSampleCreateObjChildOut() local
110 napi_status status; getSampleCreateObjTypeOut() local
141 napi_status status; getSampleCreateObjValuestringOut() local
179 napi_status status; getSampleCreateObjValueintOut() local
210 napi_status status; getSampleCreateObjValuedoubleOut() local
241 napi_status status; getSampleCreateObjStringOut() local
281 napi_status status; KH361_cJSON_CreateObject() local
[all...]
H A Dcjsoncreatearraycase.cpp20 napi_status status; in getCreateArrayTypeOut() local
29 status = napi_create_int32(env, jsonArray->type, &typeOut); in getCreateArrayTypeOut()
30 if (status != napi_ok) { in getCreateArrayTypeOut()
31 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getCreateArrayTypeOut()
40 status = napi_set_named_property(env, cJSON_CreateArrayOut, "type", typeOut); in getCreateArrayTypeOut()
41 if (status != napi_ok) { in getCreateArrayTypeOut()
43 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getCreateArrayTypeOut()
51 napi_status status; in getCreateArrayValueintOut() local
60 status = napi_create_int32(env, jsonArray->valueint, &valueintOut); in getCreateArrayValueintOut()
61 if (status ! in getCreateArrayValueintOut()
82 napi_status status; getCreateArrayValuedoubleOut() local
113 napi_status status; getCreateArrayValuestringOut() local
150 napi_status status; getCreateArrayStringOut() local
186 napi_status status; getCreateArrayChildOut() local
217 napi_status status; getCreateArrayPrevOut() local
247 napi_status status; getCreateArrayNextOut() local
282 napi_status status; KH386_cJSON_CreateArray() local
[all...]
H A Dcjsonaddfalsetoobjectcase.cpp20 napi_status status; in getAddfalsetoobjTypeOut() local
29 status = napi_create_int32(env, jsonOut->type, &typeOut); in getAddfalsetoobjTypeOut()
30 if (status != napi_ok) { in getAddfalsetoobjTypeOut()
31 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getAddfalsetoobjTypeOut()
40 status = napi_set_named_property(env, cJSON_AddFalseToObjectOut, "type", typeOut); in getAddfalsetoobjTypeOut()
41 if (status != napi_ok) { in getAddfalsetoobjTypeOut()
43 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getAddfalsetoobjTypeOut()
51 napi_status status; in getAddfalsetoobjValuesintOut() local
61 status = napi_create_int32(env, jsonOut->valueint, &valueintOut); in getAddfalsetoobjValuesintOut()
62 if (status ! in getAddfalsetoobjValuesintOut()
84 napi_status status; getAddfalsetoobjValuesdoubleOut() local
115 napi_status status; getAddfalsetoobjValuestringOut() local
151 napi_status status; getAddfalsetoobjStringOut() local
186 napi_status status; getAddfalsetoobjNextOut() local
253 napi_status status; getAddfalsetoobjChildOut() local
287 napi_status status; getAddfalsetoobjPrevOut() local
317 napi_status status; getAddfalsetoobjInfo() local
365 napi_status status; KH545_cJSON_AddFalseToObject() local
[all...]
H A Dcjsoncreatestringcase.cpp20 napi_status status; in getCreateStringNextOut() local
28 status = napi_create_object(env, &nextOut); in getCreateStringNextOut()
29 if (status != napi_ok) { in getCreateStringNextOut()
30 getErrMessage(status, env, extended_error_info, "napi_create_object", tag); in getCreateStringNextOut()
39 status = napi_set_named_property(env, cJSON_CreateStringOut, "next", nextOut); in getCreateStringNextOut()
40 if (status != napi_ok) { in getCreateStringNextOut()
42 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getCreateStringNextOut()
50 napi_status status; in getCreateStringPrevOut() local
58 status = napi_create_object(env, &prevOut); in getCreateStringPrevOut()
59 if (status ! in getCreateStringPrevOut()
80 napi_status status; getCreateStringChildOut() local
110 napi_status status; getCreateStringTypeOut() local
141 napi_status status; getCreateStringValuestringOut() local
176 napi_status status; getCreateStringValueintOut() local
207 napi_status status; getCreateStringValuedoubleOut() local
238 napi_status status; getCreateStringStringOut() local
273 napi_status status; getCreateStringParamIn() local
319 napi_status status; KH515_cJSON_CreateString() local
[all...]
H A Dcjsoncreateintarraycase.cpp21 napi_status status; in getCreateintarrTypeOut() local
30 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getCreateintarrTypeOut()
31 if (status != napi_ok) { in getCreateintarrTypeOut()
32 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getCreateintarrTypeOut()
41 status = napi_set_named_property(env, cJSON_CreateIntArrayOut, "type", typeOut); in getCreateintarrTypeOut()
42 if (status != napi_ok) { in getCreateintarrTypeOut()
44 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getCreateintarrTypeOut()
52 napi_status status; in getCreateintarrValuesintOut() local
61 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getCreateintarrValuesintOut()
62 if (status ! in getCreateintarrValuesintOut()
83 napi_status status; getCreateintarrValuesdoubleOut() local
114 napi_status status; getCreateintarrValuestringOut() local
150 napi_status status; getCreateintarrStringOut() local
186 napi_status status; getCreateintarrNextOut() local
251 napi_status status; getCreateintarrChildOut() local
285 napi_status status; getCreateintarrPrevOut() local
315 napi_status status; getCjsonObjArrayLen() local
340 napi_status status; GetCjsonCreateArrayParams1() local
395 napi_status status; GetCjsonCreateArrayParams2() local
431 napi_status status; KH203_cJSON_CreateIntArray() local
[all...]
H A Dcjsoncommon.cpp22 void getErrMessage(napi_status &status, napi_env &env, const napi_extended_error_info *&extended_error_info, in getErrMessage() argument
25 status = napi_get_last_error_info(env, &extended_error_info); in getErrMessage()
26 if (status == napi_ok && extended_error_info != NULL) { in getErrMessage()
56 napi_status status; in IsEmptyObject() local
61 status = napi_typeof(env, obj, &valuetype); in IsEmptyObject()
62 if (status != napi_ok) { in IsEmptyObject()
63 getErrMessage(status, env, extended_error_info, "IsEmptyObject: napi_typeof obj", tag); in IsEmptyObject()
70 status = napi_get_property_names(env, obj, &propertyNames); in IsEmptyObject()
71 if (status != napi_ok) { in IsEmptyObject()
72 getErrMessage(status, en in IsEmptyObject()
95 napi_status status; getNapiCjsonString() local
123 napi_status status; getNapiCjsonValuestring() local
151 napi_status status; getNapiCjsonValuedouble() local
171 napi_status status; getNapiCjsonType() local
192 napi_status status; getNapiCjsonChild() local
216 napi_status status; getNapiCjsonNext() local
237 napi_status status; getNapiCjsonPrev() local
258 napi_status status; getNapiCjsonChildArrObj() local
326 napi_status status; getNapiCjsonArrayChild() local
351 napi_status status; getNapiCjsonArrayNext() local
376 napi_status status; getNapiCjsonArrayPrev() local
482 napi_status status; isArrObject() local
[all...]
H A Dcjsongetarraysizecase.cpp24 napi_status status; in KH373_cJSON_GetArraySize() local
48 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in KH373_cJSON_GetArraySize()
49 if (status != napi_ok) { in KH373_cJSON_GetArraySize()
51 getErrMessage(status, env, extended_error_info, "napi_get_cb_info", tag); in KH373_cJSON_GetArraySize()
58 status = napi_get_named_property(env, args[0], "valuestring", &arrayStringObj); // 读取属性 in KH373_cJSON_GetArraySize()
59 if (status != napi_ok) { in KH373_cJSON_GetArraySize()
60 getErrMessage(status, env, extended_error_info, "get named property", tag); in KH373_cJSON_GetArraySize()
72 status = napi_get_value_string_utf8(env, arrayStringObj, NULL, 0, &strSize0); in KH373_cJSON_GetArraySize()
73 if (status != napi_ok) { in KH373_cJSON_GetArraySize()
74 getErrMessage(status, en in KH373_cJSON_GetArraySize()
[all...]
H A Dcjsonadditemtoobjectcase.cpp20 napi_status status; in getAdditemtoobjTypeOut() local
29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAdditemtoobjTypeOut()
30 if (status != napi_ok) { in getAdditemtoobjTypeOut()
31 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getAdditemtoobjTypeOut()
40 status = napi_set_named_property(env, cJSON_AddItemToObjectOut, "type", typeOut); in getAdditemtoobjTypeOut()
41 if (status != napi_ok) { in getAdditemtoobjTypeOut()
43 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getAdditemtoobjTypeOut()
51 napi_status status; in getAdditemtoobjValuesintOut() local
60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAdditemtoobjValuesintOut()
61 if (status ! in getAdditemtoobjValuesintOut()
82 napi_status status; getAdditemtoobjValuesdoubleOut() local
113 napi_status status; getAdditemtoobjValuestringOut() local
149 napi_status status; getAdditemtoobjStringOut() local
190 napi_status status; getAdditemtoobjNextOut() local
264 napi_status status; getAdditemtoobjChildOut() local
298 napi_status status; getAdditemtoobjPrevOut() local
328 napi_status status; getAdditemtoobjInfoParam1() local
369 napi_status status; getAdditemtoobjInfoParam2() local
458 napi_status status; KH180_cJSON_AddItemToObject() local
[all...]
H A Dcjsonaddstringtoobjectcase.cpp20 napi_status status; in getAddstrtoobjTypeOut() local
29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAddstrtoobjTypeOut()
30 if (status != napi_ok) { in getAddstrtoobjTypeOut()
31 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getAddstrtoobjTypeOut()
40 status = napi_set_named_property(env, cJSON_AddStringToObjectOut, "type", typeOut); in getAddstrtoobjTypeOut()
41 if (status != napi_ok) { in getAddstrtoobjTypeOut()
43 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getAddstrtoobjTypeOut()
51 napi_status status; in getAddstrtoobjValuesintOut() local
60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAddstrtoobjValuesintOut()
61 if (status ! in getAddstrtoobjValuesintOut()
82 napi_status status; getAddstrtoobjValuesdoubleOut() local
113 napi_status status; getAddstrtoobjValuestringOut() local
149 napi_status status; getAddstrtoobjStringOut() local
185 napi_status status; getAddstrtoobjNextOut() local
250 napi_status status; getAddstrtoobjChildOut() local
284 napi_status status; getAddstrtoobjPrevOut() local
314 napi_status status; getAddstrtoobjInfoNameIn() local
355 napi_status status; getAddstrtoobjInfoValueIn() local
401 napi_status status; KH526_cJSON_AddStringToObject() local
[all...]
H A Dcjsonadditemtoarraycase.cpp20 napi_status status; in getAdditemtoarrInfoNum() local
24 status = napi_get_named_property(env, itemObj, "valuedouble", &paramValuedoubleIn); // 读取属性值 in getAdditemtoarrInfoNum()
25 if (status != napi_ok) { in getAdditemtoarrInfoNum()
26 getErrMessage(status, env, extended_error_info, "get named property", tag); in getAdditemtoarrInfoNum()
32 status = napi_get_value_double(env, paramValuedoubleIn, &arrayItemValuedoubleIn); in getAdditemtoarrInfoNum()
33 if (status != napi_ok) { in getAdditemtoarrInfoNum()
34 getErrMessage(status, env, extended_error_info, "napi_get_value_double", tag); in getAdditemtoarrInfoNum()
43 napi_status status; in getAdditemtoarrInfoStr() local
47 status = napi_get_named_property(env, itemObj, "valuestring", &paramValuestringIn); // 读取属性值 in getAdditemtoarrInfoStr()
48 if (status ! in getAdditemtoarrInfoStr()
134 napi_status status; getAdditemtoarrTypeOut() local
165 napi_status status; getAdditemtoarrValuesintOut() local
196 napi_status status; getAdditemtoarrValuesdoubleOut() local
227 napi_status status; getAdditemtoarrValuestringOut() local
263 napi_status status; getAdditemtoarrStringOut() local
299 napi_status status; getAdditemtoarrNextOut() local
380 napi_status status; getAdditemtoarrChildOut() local
414 napi_status status; getAdditemtoarrPrevOut() local
500 napi_status status; KH802_cJSON_AddItemToArray() local
[all...]
H A Dcjsonaddnumbertoobjectcase.cpp20 napi_status status; in getAddnumbertoobjTypeOut() local
29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAddnumbertoobjTypeOut()
30 if (status != napi_ok) { in getAddnumbertoobjTypeOut()
31 getErrMessage(status, env, extended_error_info, "napi_create_int32", tag); in getAddnumbertoobjTypeOut()
40 status = napi_set_named_property(env, cJSON_AddNumberToObjectOut, "type", typeOut); in getAddnumbertoobjTypeOut()
41 if (status != napi_ok) { in getAddnumbertoobjTypeOut()
43 getErrMessage(status, env, extended_error_info, "napi_set_named_property", tag); in getAddnumbertoobjTypeOut()
51 napi_status status; in getAddnumbertoobjValuesintOut() local
60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAddnumbertoobjValuesintOut()
61 if (status ! in getAddnumbertoobjValuesintOut()
82 napi_status status; getAddnumbertoobjValuesdoubleOut() local
113 napi_status status; getAddnumbertoobjValuestringOut() local
149 napi_status status; getAddnumbertoobjStringOut() local
185 napi_status status; getAddnumbertoobjNextOut() local
251 napi_status status; getAddnumbertoobjChildOut() local
285 napi_status status; getAddnumbertoobjPrevOut() local
316 napi_status status; getAddnumbertoobjInfoStr() local
357 napi_status status; getAddnumbertoobjInfoNum() local
392 napi_status status; KH206_cJSON_AddNumberToObject() local
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsproperty/
H A Dnapihasnamedproperty.cpp22 napi_status status; in getSecondParamStr() local
25 status = napi_get_value_string_utf8(env, propName, NULL, 0, &str_size); in getSecondParamStr()
26 if (status != napi_ok) { in getSecondParamStr()
27 getErrMsg(status, env, extended_error_info, "get value string", TAG); in getSecondParamStr()
32 status = napi_get_value_string_utf8(env, propName, propertyName, str_size + 1, &str_size); in getSecondParamStr()
33 if (status != napi_ok) { in getSecondParamStr()
34 getErrMsg(status, env, extended_error_info, "get value string", TAG); in getSecondParamStr()
46 napi_status status; in testNapiHasNamedProperty() local
51 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiHasNamedProperty()
52 if (status ! in testNapiHasNamedProperty()
[all...]
H A Dnapigetproperty.cpp22 napi_status status; in callFunctionIfTypeIsFunction() local
26 status = napi_typeof(env, propValue, &valuetype); in callFunctionIfTypeIsFunction()
27 if (status != napi_ok) { in callFunctionIfTypeIsFunction()
28 getErrMsg(status, env, extended_error_info, "get type", TAG); in callFunctionIfTypeIsFunction()
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfTypeIsFunction()
36 if (status != napi_ok) { in callFunctionIfTypeIsFunction()
37 getErrMsg(status, env, extended_error_info, "call function", TAG); in callFunctionIfTypeIsFunction()
52 napi_status status; in testNapiGetProperty() local
58 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiGetProperty()
59 if (status ! in testNapiGetProperty()
[all...]
H A Dnapihaselement.cpp25 napi_status status; in testNapiHasElement() local
30 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiHasElement()
31 if (status != napi_ok) { in testNapiHasElement()
32 getErrMsg(status, env, extended_error_info, "get cb info", TAG); in testNapiHasElement()
49 status = napi_get_value_uint32(env, elementIndex, &index); in testNapiHasElement()
50 if (status != napi_ok) { in testNapiHasElement()
51 getErrMsg(status, env, extended_error_info, "get value uint32", TAG); in testNapiHasElement()
56 status = napi_has_element(env, arrayObj, index, &hasElement); in testNapiHasElement()
57 if (status != napi_ok) { in testNapiHasElement()
58 getErrMsg(status, en in testNapiHasElement()
[all...]
H A Dnapihasproperty.cpp25 napi_status status; in testNapiHasProperty() local
31 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiHasProperty()
32 if (status != napi_ok) { in testNapiHasProperty()
33 getErrMsg(status, env, extended_error_info, "get cb info", TAG); in testNapiHasProperty()
48 status = napi_typeof(env, obj, &valuetype0); in testNapiHasProperty()
49 if (status != napi_ok) { in testNapiHasProperty()
50 getErrMsg(status, env, extended_error_info, "get obj type", TAG); in testNapiHasProperty()
60 status = napi_has_property(env, obj, propName, &hasProperty); in testNapiHasProperty()
61 if (status != napi_ok) { in testNapiHasProperty()
62 getErrMsg(status, en in testNapiHasProperty()
[all...]
H A Dnapisetnamedproperty.cpp25 napi_status status; in testNapiSetNamedProperty() local
30 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); // 解析传入的参数 in testNapiSetNamedProperty()
31 if (status != napi_ok) { in testNapiSetNamedProperty()
32 getErrMsg(status, env, extended_error_info, "get cb info", TAG); in testNapiSetNamedProperty()
49 status = napi_get_value_string_utf8(env, propName, NULL, 0, &str_size); in testNapiSetNamedProperty()
50 if (status != napi_ok) { in testNapiSetNamedProperty()
51 getErrMsg(status, env, extended_error_info, "get value string", TAG); in testNapiSetNamedProperty()
55 status = napi_get_value_string_utf8(env, propName, propertyName, str_size + 1, &str_size); in testNapiSetNamedProperty()
56 if (status != napi_ok) { in testNapiSetNamedProperty()
57 getErrMsg(status, en in testNapiSetNamedProperty()
[all...]
H A Dnapigetnamedproperty.cpp22 napi_status status; in callFunctionIfPropertyTypeIsFunction() local
26 status = napi_typeof(env, propValue, &valuetype); in callFunctionIfPropertyTypeIsFunction()
27 if (status != napi_ok) { in callFunctionIfPropertyTypeIsFunction()
28 getErrMsg(status, env, extended_error_info, "get type", TAG); in callFunctionIfPropertyTypeIsFunction()
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfPropertyTypeIsFunction()
36 if (status != napi_ok) { in callFunctionIfPropertyTypeIsFunction()
37 getErrMsg(status, env, extended_error_info, "call function", TAG); in callFunctionIfPropertyTypeIsFunction()
52 napi_status status; in testNapiGetNamedProperty() local
56 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); // 解析传入的参数 in testNapiGetNamedProperty()
57 if (status ! in testNapiGetNamedProperty()
[all...]
H A Dnapigetpropertynames.cpp25 napi_status status; in testNapiGetPropertyNames() local
30 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiGetPropertyNames()
31 if (status != napi_ok) { in testNapiGetPropertyNames()
32 getErrMsg(status, env, extended_error_info, "get cb info", TAG); in testNapiGetPropertyNames()
44 status = napi_get_property_names(env, obj, &propertyNames); in testNapiGetPropertyNames()
45 if (status != napi_ok) { in testNapiGetPropertyNames()
46 getErrMsg(status, env, extended_error_info, "get property names", TAG); in testNapiGetPropertyNames()
51 status = napi_get_array_length(env, propertyNames, &length); in testNapiGetPropertyNames()
52 if (status != napi_ok) { in testNapiGetPropertyNames()
53 getErrMsg(status, en in testNapiGetPropertyNames()
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsobjectwrap/
H A Dnapiunwrap.cpp23 napi_status status; member in MyNode
30 status = napi_typeof(env, val, &result); in MyNode()
31 if (status != napi_ok) { in MyNode()
32 getErrMsg(status, env, extended_error_info, "call napi_typeof()", TAG); in MyNode()
36 status = napiValueType2Str(env, result, &resultStr); in MyNode()
37 if (status != napi_ok) { in MyNode()
38 std::string errMsg = "Failed to convert napi_valuetype " + std::to_string(status) + " to string"; in MyNode()
54 napi_status status; in testNapiUnwrap() local
58 status = napi_get_cb_info(env, info, &argc, argv, &thisObj, &data); in testNapiUnwrap()
59 if (status ! in testNapiUnwrap()
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/
H A Dcommon.cpp19 void getErrMsg(napi_status &status, napi_env &env, const napi_extended_error_info *&extended_error_info, in getErrMsg() argument
22 status = napi_get_last_error_info(env, &extended_error_info); in getErrMsg()
23 if (status == napi_ok && extended_error_info != NULL) { in getErrMsg()
38 napi_status status; in validateObjectProperty() local
44 status = napi_typeof(env, obj, &valuetype0); in validateObjectProperty()
45 if (status != napi_ok) { in validateObjectProperty()
46 getErrMsg(status, env, extended_error_info, "get obj type", tag); in validateObjectProperty()
55 status = napi_typeof(env, propName, &valuetype1); in validateObjectProperty()
56 if (status != napi_ok) { in validateObjectProperty()
57 getErrMsg(status, en in validateObjectProperty()
69 napi_status status; validateArrayObjProperty() local
101 napi_status status; napiValueType2Str() local
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsvalues/
H A Dnapicreateuint32.cpp31 napi_status status; in testNapiCreateUInt32() local
35 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiCreateUInt32()
36 if (status != napi_ok) { in testNapiCreateUInt32()
37 getErrMsg(status, env, extended_error_info, "Failed to get callback info", TAG); in testNapiCreateUInt32()
48 status = napi_get_value_uint32(env, argv[0], &uintValue); in testNapiCreateUInt32()
49 if (status != napi_ok) { in testNapiCreateUInt32()
50 getErrMsg(status, env, extended_error_info, "Failed to convert argument to uint32", TAG); in testNapiCreateUInt32()
61 status = napi_create_uint32(env, uintValue, &result); in testNapiCreateUInt32()
62 if (status != napi_ok) { in testNapiCreateUInt32()
63 getErrMsg(status, en in testNapiCreateUInt32()
[all...]
H A Dnapicreateint32.cpp30 napi_status status; in testNapiCreateInt32() local
34 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiCreateInt32()
35 if (status != napi_ok) { in testNapiCreateInt32()
36 getErrMsg(status, env, extended_error_info, "Failed to get callback info", TAG); in testNapiCreateInt32()
47 status = napi_get_value_int32(env, argv[0], &intValue); in testNapiCreateInt32()
48 if (status != napi_ok) { in testNapiCreateInt32()
49 getErrMsg(status, env, extended_error_info, "Failed to convert argument to int32", TAG); in testNapiCreateInt32()
61 status = napi_create_int32(env, intValue, &result); in testNapiCreateInt32()
62 if (status != napi_ok) { in testNapiCreateInt32()
63 getErrMsg(status, en in testNapiCreateInt32()
[all...]
H A Dnapicreateint64.cpp30 napi_status status; in testNapiCreateInt64() local
34 status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); in testNapiCreateInt64()
35 if (status != napi_ok) { in testNapiCreateInt64()
36 getErrMsg(status, env, extended_error_info, "Failed to get callback info", TAG); in testNapiCreateInt64()
47 status = napi_get_value_int64(env, argv[0], &intValue); in testNapiCreateInt64()
48 if (status != napi_ok) { in testNapiCreateInt64()
49 getErrMsg(status, env, extended_error_info, "Failed to convert argument to int64", TAG); in testNapiCreateInt64()
61 status = napi_create_int64(env, intValue, &result); in testNapiCreateInt64()
62 if (status != napi_ok) { in testNapiCreateInt64()
63 getErrMsg(status, en in testNapiCreateInt64()
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsabstractops/
H A Dnapitypeof.cpp25 napi_status status; in testNapiTypeof() local
32 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiTypeof()
33 if (status != napi_ok) { in testNapiTypeof()
34 getErrMsg(status, env, extended_error_info, "get cb info", TAG); in testNapiTypeof()
44 status = napi_typeof(env, args[PARAM0], &result); in testNapiTypeof()
45 if (status != napi_ok) { in testNapiTypeof()
46 getErrMsg(status, env, extended_error_info, "call napi_typeof()", TAG); in testNapiTypeof()
51 status = napiValueType2Str(env, result, &resultStr); in testNapiTypeof()
52 if (status != napi_ok) { in testNapiTypeof()
53 std::string errMsg = "Failed to convert napi_valuetype " + std::to_string(status) in testNapiTypeof()
[all...]

Completed in 12 milliseconds

123