Browse Source

core: Move UNWRAP_NO_ABORT to handle_wrap.h

Otherwise it cannot be used in StreamWrap.

Forgot to include in last patch, broke the build.
v0.10.1-release
isaacs 12 years ago
parent
commit
110cacd1ed
  1. 6
      src/handle_wrap.cc
  2. 6
      src/handle_wrap.h

6
src/handle_wrap.cc

@ -23,12 +23,6 @@
#include "ngx-queue.h"
#include "handle_wrap.h"
#define UNWRAP_NO_ABORT(type) \
assert(!args.Holder().IsEmpty()); \
assert(args.Holder()->InternalFieldCount() > 0); \
type* wrap = static_cast<type*>( \
args.Holder()->GetPointerFromInternalField(0));
namespace node {
using v8::Arguments;

6
src/handle_wrap.h

@ -46,6 +46,12 @@ namespace node {
// js/c++ boundary crossing. At the javascript layer that should all be
// taken care of.
#define UNWRAP_NO_ABORT(type) \
assert(!args.Holder().IsEmpty()); \
assert(args.Holder()->InternalFieldCount() > 0); \
type* wrap = static_cast<type*>( \
args.Holder()->GetPointerFromInternalField(0));
class HandleWrap {
public:
static void Initialize(v8::Handle<v8::Object> target);

Loading…
Cancel
Save