Skip to content

Commit

Permalink
fixup! doc: add basic embedding example documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Sep 23, 2020
1 parent 30b6c2f commit 6e63159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Node.js requires some per-process state management in order to run:
The following example shows how these can be set up. Some class names are from
the `node` and `v8` C++ namespaces, respectively.

```c++
```cpp
int main(int argc, char** argv) {
std::vector<std::string> args(argv, argv + argc);
std::vector<std::string> exec_args;
Expand Down Expand Up @@ -93,7 +93,7 @@ The `node::NewIsolate()` helper function creates a `v8::Isolate`,
sets it up with some Node.js-specific hooks (e.g. the Node.js error handler),
and registers it with the platform automatically.
```c++
```cpp
int RunNodeInstance(MultiIsolatePlatform* platform,
const std::vector<std::string>& args,
const std::vector<std::string>& exec_args) {
Expand Down

0 comments on commit 6e63159

Please sign in to comment.