Print this page
XXX review feedback from keith
XXX rework to avoid changing api
XXX well, it works now...

Split Close
Expand all
Collapse all
          --- old/./v8plus_impl.h
          +++ new/./v8plus_impl.h
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  
  23   23  #define V8PLUS_THROW(_t, _e, _f, _args...) \
  24   24      v8::ThrowException(v8plus::exception((_t), (_e), (_f), ## _args))
  25   25  #define V8PLUS_THROW_DEFAULT()          V8PLUS_THROW(NULL, NULL, NULL)
  26   26  #define V8PLUS_THROW_DECORATED(_e)      V8PLUS_THROW(NULL, (_e), NULL)
  27   27  
  28   28  #if NODE_MINOR_VERSION > 7 || NODE_MAJOR_VERSION > 0
  29   29  #define NODE_MAKECALLBACK_RETURN
  30   30  #endif
  31   31  
       32 +extern "C" boolean_t v8plus_in_event_thread(void);
       33 +extern "C" void v8plus_crossthread_init(void);
       34 +
  32   35  namespace v8plus {
  33   36  
  34   37  class ObjectWrap;
  35   38  
  36   39  class ObjectWrap : public node::ObjectWrap {
  37   40  public:
  38   41          static void init(v8::Handle<v8::Object>);
  39   42          static v8::Handle<v8::Value> cons(const v8::Arguments &);
  40   43          static ObjectWrap *objlookup(const void *);
  41   44          v8::Handle<v8::Value> call(const char *, int, v8::Handle<v8::Value>[]);
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX