diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-08-06 04:58:29 +0400 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-08-12 22:49:53 +0400 |
commit | 756ae2c5360b7ab64649cb7587242a2fbd8dc95d (patch) | |
tree | a6152c93769e654073dc9128864677a22ec41007 /src/handle_wrap.h | |
parent | e0a8e1bf77e561ec6894540ea2aae6a52fb1d7e0 (diff) |
src: centralize class wrap/unwrap
While almost all cases were handled by simple WRAP/UNWRAP macros, this
extends those to cover all known occurrences.
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r-- | src/handle_wrap.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h index f06f639ce43..b5918f5dfe9 100644 --- a/src/handle_wrap.h +++ b/src/handle_wrap.h @@ -49,12 +49,6 @@ namespace node { // js/c++ boundary crossing. At the javascript layer that should all be // taken care of. -#define UNWRAP_NO_ABORT(type) \ - assert(!args.This().IsEmpty()); \ - assert(args.This()->InternalFieldCount() > 0); \ - type* wrap = static_cast<type*>( \ - args.This()->GetAlignedPointerFromInternalField(0)); - class HandleWrap { public: static void Close(const v8::FunctionCallbackInfo<v8::Value>& args); |