summaryrefslogtreecommitdiff
path: root/src/core/script
diff options
context:
space:
mode:
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;