Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (15 sloc) 0.582 kB
e02b71e @ry exit program on top level exceptions
ry authored
1 #ifndef node_h
2 #define node_h
3
4 #include <ev.h>
0e9e927 @ry enable support for the thread pool
ry authored
5 #include <eio.h>
e02b71e @ry exit program on top level exceptions
ry authored
6 #include <v8.h>
7
63a9cd3 @ry everything is changed. i've waited much too long to commit.
ry authored
8 #define JS_SYMBOL(name) v8::String::NewSymbol(name)
9 #define JS_METHOD(name) v8::Handle<v8::Value> jsmethod_##name (const v8::Arguments& args)
10 #define JS_SET_METHOD(obj, name, callback) \
11 obj->Set(JS_SYMBOL(name), v8::FunctionTemplate::New(jsmethod_##callback)->GetFunction())
12
13
e02b71e @ry exit program on top level exceptions
ry authored
14 void node_fatal_exception (v8::TryCatch &try_catch);
15 #define node_loop() ev_default_loop(0)
63a9cd3 @ry everything is changed. i've waited much too long to commit.
ry authored
16 void node_exit (int code);
e02b71e @ry exit program on top level exceptions
ry authored
17
0e9e927 @ry enable support for the thread pool
ry authored
18 // call this after creating a new eio event.
19 void node_eio_submit(eio_req *req);
20
e02b71e @ry exit program on top level exceptions
ry authored
21 #endif // node_h
22
Something went wrong with that request. Please try again.