@@ -167,47 +167,46 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
167167}
168168```
169169
170- # C embedder API
170+ ## C runtime API
171171
172172<!-- introduced_in=REPLACEME-->
173173
174174While Node.js provides an extensive C++ embedding API that can be used from C++
175175applications, the C-based API is useful when Node.js is embedded as a shared
176176libnode library into C++ or non-C++ applications.
177177
178- ## API design overview
178+ ### API design overview
179179
180- One of the goals for the C based embedder API is to be ABI stable. It means that
180+ One of the goals for the C based runtime API is to be ABI stable. It means that
181181applications must be able to use newer libnode versions without recompilation.
182182The following design principles are targeting to achieve that goal.
183183
184- - Follow the best practices for the [ node-api] [ ] design and build on top of
184+ * Follow the best practices for the [ node-api] [ ] design and build on top of
185185 the [ node-api] [ ] .
186186
187- ## API reference
187+ ### API reference
188188
189189#### Functions
190190
191- ##### ` node_embedding_main `
191+ ##### ` node_rt_main `
192192
193193<!-- YAML
194194added: REPLACEME
195195-->
196196
197197> Stability: 1 - Experimental
198198
199- Runs Node.js runtime instance.
199+ Runs Node.js runtime instance the same way as the Node.js executable .
200200
201201``` c
202- int32_t NAPI_CDECL node_embedding_main (
202+ int32_t NAPI_CDECL node_rt_main (
203203 int32_t argc,
204204 char* argv[ ] );
205205```
206206
207- - `[in] argc`: Number of items in the `argv` array.
208- - `[in] argv`: CLI arguments as an array of zero terminated strings.
209-
210- Returns `int32_t` with instance exit code.
207+ * `[in] argc`: Number of items in the `argv` array.
208+ * `[in] argv`: CLI arguments as an array of zero terminated strings.
209+ Returns `int32_t` with runtime instance exit code.
211210
212211[CLI options]: cli.md
213212[`process.memoryUsage()`]: process.md#processmemoryusage
0 commit comments