From 600bba2be22c46844b15e8b728dd00bec55e51c2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 6 Apr 2022 08:54:17 +0800 Subject: [PATCH] 1 --- a8/xobject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/a8/xobject.h b/a8/xobject.h index a4f308d..566b35e 100644 --- a/a8/xobject.h +++ b/a8/xobject.h @@ -27,6 +27,9 @@ namespace a8 ~XObject(); unsigned char GetType(); + bool IsSimple() { return GetType() == XOT_SIMPLE; }; + bool IsArray() { return GetType() == XOT_ARRAY; }; + bool IsObject() { return GetType() == XOT_OBJECT; }; int Size(); void Reset(); void DeepCopy(a8::XObject& to);