diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-10-29 13:23:58 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-10-29 15:09:44 -0700 |
commit | 613d76ef6a00ec091367de1e63bc51e3ab672cbd (patch) | |
tree | 6d5596dfb015ef812081c3974f1b5adf862402c8 /src/util-inl.h | |
parent | f2e3be53bc33fc9269c248cec4ac26d6ec9054f7 (diff) | |
download | node-new-613d76ef6a00ec091367de1e63bc51e3ab672cbd.tar.gz |
src: shorten Object{Wrap,Unwrap}
Going back to the original names of Wrap/Unwrap now that most all the
class members that duplicate the name and functionality have been
removed.
Diffstat (limited to 'src/util-inl.h')
-rw-r--r-- | src/util-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util-inl.h b/src/util-inl.h index 8257e5a9e1..76015ccb3b 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -81,14 +81,14 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate, } template <typename TypeName> -void WrapObject(v8::Local<v8::Object> object, TypeName* pointer) { +void Wrap(v8::Local<v8::Object> object, TypeName* pointer) { assert(!object.IsEmpty()); assert(object->InternalFieldCount() > 0); object->SetAlignedPointerInInternalField(0, pointer); } template <typename TypeName> -TypeName* UnwrapObject(v8::Local<v8::Object> object) { +TypeName* Unwrap(v8::Local<v8::Object> object) { assert(!object.IsEmpty()); assert(object->InternalFieldCount() > 0); void* pointer = object->GetAlignedPointerFromInternalField(0); |