summaryrefslogtreecommitdiff
path: root/src/core/script
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-10-16 19:56:08 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-10-16 19:56:08 +0000
commit14982ab94391bf9ec0b2ddba7f4517a0c834d0b1 (patch)
tree4dafeab905b12e67bc7f546043e9d50900b6e1e5 /src/core/script
parent97f6ec9bbb3615c9a505e29c76b7ecc6993b6791 (diff)
current versoin
git-svn-id: file:///var/local/svn/basicwriter@70 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/core/script')
-rw-r--r--src/core/script/Variant.hpp5
1 files changed, 4 insertions, 1 deletions
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;