napi_cleanup_hook
与 napi_add_env_cleanup_hook
一起使用的函数指针。当环境被拆除时,它将被调用。
¥Function pointer used with napi_add_env_cleanup_hook
. It will be called
when the environment is being torn down.
回调函数必须满足以下签名:
¥Callback functions must satisfy the following signature:
typedef void (*napi_cleanup_hook)(void* data);
-
[in] data
:传递给napi_add_env_cleanup_hook
的数据。¥
[in] data
: The data that was passed tonapi_add_env_cleanup_hook
.