FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/benchmark/function_call/binding.cc at master · basuke/node · GitHub
basuke
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
benchmark
/
function_call
/
binding.cc
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 412 Bytes
Breadcrumbs
node
/
benchmark
/
function_call
/
binding.cc
Copy path
File metadata and controls
19 lines (15 loc) · 412 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
#
include
<
v8.h
>
#
include
<
node.h
>
#
include
<
time.h
>
using
namespace
v8
;
static
int
c =
0
;
static
Handle<Value>
Hello
(
const
Arguments& args) {
HandleScope scope;
//
time_t tv = time(NULL);
return
scope.
Close
(
Integer::New
(c++));
}
extern
"
C
"
void
init
(Handle<Object> target) {
HandleScope scope;
//
target->Set(String::New("hello"), String::New("World"));
NODE_SET_METHOD
(target,
"
hello
"
, Hello);
}
Back
|
FazBrowse Home
|
New Git URL