From 799e43bd0238e43e8669a6fabe1a7887a1b726eb Mon Sep 17 00:00:00 2001 From: huruitao Date: Mon, 8 Jul 2024 16:26:36 +0800 Subject: [PATCH] =?UTF-8?q?"modifile=20examples/napitutorials/tool/command?= =?UTF-8?q?Line/src/json/directFunction/cppTempleteDetails/funcBody/funcPa?= =?UTF-8?q?ramIn/funcParamType/int32=5Ft.gen=20=E5=88=A0=E9=99=A4examples/?= =?UTF-8?q?napitutorials/tool/=EF=BC=9B=E5=A2=9E=E5=8A=A0=E5=87=A0?= =?UTF-8?q?=E4=B8=AAjs=20html=E4=B8=AD=E7=9A=84;"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huruitao --- .../funcBody/funcParamIn/funcParamType/int32_t.gen | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 examples/napitutorials/tool/commandLine/src/json/directFunction/cppTempleteDetails/funcBody/funcParamIn/funcParamType/int32_t.gen diff --git a/examples/napitutorials/tool/commandLine/src/json/directFunction/cppTempleteDetails/funcBody/funcParamIn/funcParamType/int32_t.gen b/examples/napitutorials/tool/commandLine/src/json/directFunction/cppTempleteDetails/funcBody/funcParamIn/funcParamType/int32_t.gen deleted file mode 100644 index 9db74901..00000000 --- a/examples/napitutorials/tool/commandLine/src/json/directFunction/cppTempleteDetails/funcBody/funcParamIn/funcParamType/int32_t.gen +++ /dev/null @@ -1,12 +0,0 @@ - int32_t [param_name_replace]In = 0; - /* [NAPI_GEN]: napi_get_value_int32将一个 napi_value 类型的 js 数值转换成一个 C 语言的 int32_t 类型的数值 - * env: N-API环境的句柄,表示当前的上下文 - * value:要转换的JavaScript值 - * result:指向 int32_t 类型的指针,在这里函数将存储转换后的整数值 - */ - status = napi_get_value_int32(env, args[[param_index_replace]], &[param_name_replace]In); - if (status != napi_ok) { - /* [NAPI_GEN]: 错误处理*/ - getErrMessage(status, env, extended_error_info, "napi_get_value_int32", tag); - return nullptr; - } \ No newline at end of file