Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index a1d88c2f8ffc315eef10b083f3d9fd1345680a4b..77aebf773220b658baae8e86231665f82a70be91 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -95,6 +95,13 @@ class Handle { |
}; |
+// Convenience wrapper. |
+template<class T> |
+inline Handle<T> handle(T* t) { |
+ return Handle<T>(t); |
+} |
+ |
+ |
class DeferredHandles; |
class HandleScopeImplementer; |