mirror of
https://gitee.com/openharmony/napi_generator
synced 2024-11-23 08:20:01 +00:00
fix napi class snippets bug
Signed-off-by: chen-zhongwei050 <chenzhongwei050@chinasoftinc.com>
This commit is contained in:
parent
471b023a48
commit
13f7e4f0c3
@ -50,6 +50,7 @@
|
||||
" // Retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object), and perform subsequent operations.",
|
||||
" napi_unwrap(env, jsThis, reinterpret_cast<void**>(&obj));",
|
||||
" // Todo: you can use \"napistringutf8out\" command that return string utf8 value to js.",
|
||||
" return stringOut;",
|
||||
"}",
|
||||
"napi_value HelloWorld::SetValue(napi_env env, napi_callback_info info)",
|
||||
"{",
|
||||
|
Loading…
Reference in New Issue
Block a user