diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-21 09:10:57 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-05-21 09:10:57 +0200 |
| commit | 0c211cca4d7a4d836f4cb685345e44f3f2814fd1 (patch) | |
| tree | f08901e67cdabe025d8ad40c18c62b27b32c5517 /Kernel/Sources/Variant.cxx | |
| parent | f022a2afeb7af04ce3ef256ef617d19f07d84d9a (diff) | |
MHR-23: New CoreSystem calls and refactors.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Kernel/Sources/Variant.cxx')
| -rw-r--r-- | Kernel/Sources/Variant.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Kernel/Sources/Variant.cxx b/Kernel/Sources/Variant.cxx new file mode 100644 index 00000000..94f1991e --- /dev/null +++ b/Kernel/Sources/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 |
