summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Source/Variant.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Source/Variant.cxx')
-rw-r--r--Kernel/Source/Variant.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/Kernel/Source/Variant.cxx b/Kernel/Source/Variant.cxx
new file mode 100644
index 00000000..1a09718b
--- /dev/null
+++ b/Kernel/Source/Variant.cxx
@@ -0,0 +1,24 @@
+/* -------------------------------------------
+
+ Copyright SoftwareLabs
+
+------------------------------------------- */
+
+#include <NewKit/Variant.hpp>
+
+namespace NewOS
+{
+ const Char* Variant::ToString()
+ {
+ switch (fKind)
+ {
+ case VariantKind::kString:
+ return ("Class:{String}");
+ case VariantKind::kPointer:
+ return ("Memory:{Pointer}");
+ default:
+ return ("Memory:{Undefined}");
+ }
+ }
+
+} // namespace NewOS