Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
hello.cpp File Reference

(dc8a6de42c8adb89275628f0adb067e9664a795d)

#include "napi/native_api.h"
Include dependency graph for hello.cpp:

Go to the source code of this file.

Functions

static napi_value Add (napi_env env, napi_callback_info info)
static EXTERN_C_START napi_value Init (napi_env env, napi_value exports)
 __attribute__ ((constructor)) void RegisterEntryModule(void)

Variables

static EXTERN_C_END napi_module demoModule

Function Documentation

◆ __attribute__()

__attribute__ ( (constructor) )

Definition at line 54 of file hello.cpp.

◆ Add()

napi_value Add ( napi_env env,
napi_callback_info info )
static

Definition at line 6 of file hello.cpp.

◆ Init()

EXTERN_C_START napi_value Init ( napi_env env,
napi_value exports )
static

Definition at line 34 of file hello.cpp.

Variable Documentation

◆ demoModule

EXTERN_C_END napi_module demoModule
static
Initial value:
= {
.nm_version =1,
.nm_flags = 0,
.nm_filename = nullptr,
.nm_register_func = Init,
.nm_modname = "entry",
.nm_priv = ((void*)0),
.reserved = { 0 },
}
static EXTERN_C_START napi_value Init(napi_env env, napi_value exports)
Definition hello.cpp:34

Definition at line 44 of file hello.cpp.