Revision 63a9cd38 src/node.h
src/node.h | ||
---|---|---|
5 | 5 |
#include <eio.h> |
6 | 6 |
#include <v8.h> |
7 | 7 |
|
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 |
|
|
8 | 14 |
void node_fatal_exception (v8::TryCatch &try_catch); |
9 | 15 |
#define node_loop() ev_default_loop(0) |
16 |
void node_exit (int code); |
|
10 | 17 |
|
11 | 18 |
// call this after creating a new eio event. |
12 | 19 |
void node_eio_submit(eio_req *req); |
Also available in: Unified diff