diff options
Diffstat (limited to 'gin/arguments.h')
-rw-r--r-- | gin/arguments.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gin/arguments.h b/gin/arguments.h index 1d59d34..8a372ea 100644 --- a/gin/arguments.h +++ b/gin/arguments.h @@ -16,11 +16,17 @@ class Arguments { ~Arguments(); template<typename T> + // TODO(aa): Rename GetHolder(). bool Holder(T* out) { return ConvertFromV8(info_.Holder(), out); } template<typename T> + bool GetData(T* out) { + return ConvertFromV8(info_.Data(), out); + } + + template<typename T> bool GetNext(T* out) { if (next_ >= info_.Length()) { insufficient_arguments_ = true; |