From 14982ab94391bf9ec0b2ddba7f4517a0c834d0b1 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 16 Oct 2014 19:56:08 +0000 Subject: current versoin git-svn-id: file:///var/local/svn/basicwriter@70 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/core/script/Variant.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/script/Variant.hpp b/src/core/script/Variant.hpp index b2b650b..e427af5 100644 --- a/src/core/script/Variant.hpp +++ b/src/core/script/Variant.hpp @@ -28,11 +28,13 @@ namespace ousia { namespace script { +// TODO: Make Variant immutable (?), store large objects in heap buffer + /** * Enum containing the possible types a variant may have. */ enum class VariantType { - none, integer, number, string, array, map, function, object, buffer + null, boolean, integer, number, string, array, map, function, object, buffer }; /** @@ -45,6 +47,7 @@ private: VariantType type; union { + bool booleanValue; int64_t integerValue; double numberValue; std::string stringValue; -- cgit v1.2.3