Skip to content

Commit c59403e

Browse files
committed
Changed to 'node_embedding_start'
1 parent 23de792 commit c59403e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

β€Ždoc/api/embedding.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The following design principles are targeting to achieve that goal.
188188

189189
#### Functions
190190

191-
##### `node_rt_main`
191+
##### `node_embedding_start`
192192

193193
<!-- YAML
194194
added: REPLACEME
@@ -199,7 +199,7 @@ added: REPLACEME
199199
Runs Node.js runtime instance the same way as the Node.js executable.
200200

201201
```c
202-
int32_t NAPI_CDECL node_rt_main(
202+
int32_t NAPI_CDECL node_embedding_start(
203203
int32_t argc,
204204
char* argv[]);
205205
```

β€Žsrc/node_runtime_api.ccβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
EXTERN_C_START
2020

21-
int32_t NAPI_CDECL node_rt_main(int32_t argc, char* argv[]) {
21+
int32_t NAPI_CDECL node_embedding_start(int32_t argc, char* argv[]) {
2222
return node::Start(argc, argv);
2323
}
2424

β€Žsrc/node_runtime_api.hβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
EXTERN_C_START
2222

2323
// Runs Node.js main function. It is the same as running Node.js from CLI.
24-
NAPI_EXTERN int32_t NAPI_CDECL node_rt_main(int32_t argc, char* argv[]);
24+
NAPI_EXTERN int32_t NAPI_CDECL node_embedding_start(int32_t argc, char* argv[]);
2525

2626
EXTERN_C_END
2727

β€Žtest/embedding/embedtest_c_api_main.cβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// invoked from the libnode shared library as it would be run from the Node.js
55
// CLI.
66
int32_t test_main_c_api_nodejs_main(int32_t argc, char* argv[]) {
7-
return node_rt_main(argc, argv);
7+
return node_embedding_start(argc, argv);
88
}

β€Žtest/embedding/test-embedding.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,4 @@ spawnSyncAndAssert(
171171
trim: true,
172172
stdout: 'Hello World',
173173
},
174-
)
174+
);

0 commit comments

Comments
Β (0)