-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Expand file tree
/
Copy pathnode_embed_api.cc
More file actions
25 lines (21 loc) · 721 Bytes
/
node_embed_api.cc
File metadata and controls
25 lines (21 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Description: C-based API for embedding Node.js.
//
// !!! WARNING !!! WARNING !!! WARNING !!!
// This is a new API and is subject to change.
// While it is C-based, it is not ABI safe yet.
// Consider all functions and data structures as experimental.
// !!! WARNING !!! WARNING !!! WARNING !!!
//
// This file contains the C-based API for embedding Node.js in a host
// application. The API is designed to be used by applications that want to
// embed Node.js as a shared library (.so or .dll) and can interop with
// C-based API.
//
#include "node_embed_api.h"
#include "node.h"
EXTERN_C_START
int32_t NAPI_CDECL node_embed_start(int32_t argc, char* argv[]) {
return node::Start(argc, argv);
}
EXTERN_C_END