summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-08-05 17:58:29 -0700
committerTrevor Norris <trev.norris@gmail.com>2013-08-12 11:49:53 -0700
commit756ae2c5360b7ab64649cb7587242a2fbd8dc95d (patch)
treea6152c93769e654073dc9128864677a22ec41007 /src/handle_wrap.h
parente0a8e1bf77e561ec6894540ea2aae6a52fb1d7e0 (diff)
downloadandroid-node-v8-756ae2c5360b7ab64649cb7587242a2fbd8dc95d.tar.gz
android-node-v8-756ae2c5360b7ab64649cb7587242a2fbd8dc95d.tar.bz2
android-node-v8-756ae2c5360b7ab64649cb7587242a2fbd8dc95d.zip
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.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index f06f639ce4..b5918f5dfe 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);