diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 03:30:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 03:30:40 -0500 |
| commit | e3fa27827e7647a0ecc466f4d92097fe48fbbb43 (patch) | |
| tree | 33ba30655f555d37e3c970707b27413936e5a9ad /public/frameworks/KernelTest.fwrk/headers/SourceLocation.h | |
| parent | c739255b48b3a5b2e184ca1a637f9f1f95c978ff (diff) | |
| parent | efefa7221a3fea3636a64f2bf067e2af75626f34 (diff) | |
Merge pull request #79 from nekernel-org/devv0.0.61
Kernel: OpenHeFS fixes and new components.
Diffstat (limited to 'public/frameworks/KernelTest.fwrk/headers/SourceLocation.h')
| -rw-r--r-- | public/frameworks/KernelTest.fwrk/headers/SourceLocation.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h new file mode 100644 index 00000000..6507864b --- /dev/null +++ b/public/frameworks/KernelTest.fwrk/headers/SourceLocation.h @@ -0,0 +1,36 @@ +/* ======================================== + + Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. + +======================================== */ + +#pragma once + +#include <CoreFoundation.fwrk/headers/Object.h> +#include <CoreFoundation.fwrk/headers/String.h> +#include <KernelTest.fwrk/headers/Foundation.h> + +class KTSourceLocation; + +/// ================================================================================ +/// @brief SourceLocation class for Kernel Test Framework. +/// ================================================================================ +class KTSourceLocation final CF_OBJECT { + public: + explicit KTSourceLocation() = delete; + ~KTSourceLocation() override = default; + + LIBSYS_COPY_DELETE(KTSourceLocation); + + public: + KTSourceLocation(const Char*, const SInt32 = 0UL); + + CF::CFString File(); + SInt32 Line(); + + CF::CFString operator()(); + + private: + CF::CFString mFile{4096}; + SInt32 mLine{0U}; +};
\ No newline at end of file |
