FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-cpphello/cpphello.cpp at master · adam-nielsen/node-cpphello · GitHub
adam-nielsen
/
node-cpphello
Public
forked from
lupomontero/node-cpphello
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
node-cpphello
/
cpphello.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (17 loc) · 470 Bytes
Breadcrumbs
node-cpphello
/
cpphello.cpp
Copy path
File metadata and controls
24 lines (17 loc) · 470 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
include
<
node.h
>
namespace
cpphello
{
using
v8::FunctionCallbackInfo;
using
v8::Isolate;
using
v8::Local;
using
v8::Object;
using
v8::String;
using
v8::Value;
void
Foo
(
const
FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.
GetIsolate
();
args.
GetReturnValue
().
Set
(
String::NewFromUtf8
(isolate,
"
Hello World
"
));
}
void
Init
(Local<Object> exports) {
NODE_SET_METHOD
(exports,
"
foo
"
, Foo);
}
NODE_MODULE
(cpphello, Init)
}
Back
|
FazBrowse Home
|
New Git URL