NeKernel dev
Loading...
Searching...
No Matches
SourceLocation.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7#pragma once
8
10
11class KTSourceLocation;
12
17 public:
18 KTSourceLocation() = delete;
19 ~KTSourceLocation() override = default;
20
22
23 public:
24 KTSourceLocation(const Char*, const SInt32 = 0UL);
25
26 CF::CFString& File() { return mFile; }
27 SInt32 Line() { return mLine; }
28
29 CF::CFString operator()();
30
31 private:
32 CF::CFString mFile{4096};
34};
SourceLocation class for Kernel Test Framework.
Definition SourceLocation.h:16
CF::CFString operator()()
SInt32 Line()
Definition SourceLocation.h:27
SInt32 mLine
Definition SourceLocation.h:33
LIBSYS_COPY_DELETE(KTSourceLocation)
~KTSourceLocation() override=default
KTSourceLocation(const Char *, const SInt32=0UL)
KTSourceLocation()=delete
CF::CFString mFile
Definition SourceLocation.h:32
CF::CFString & File()
Definition SourceLocation.h:26
__INT32_TYPE__ SInt32
Definition Macros.h:55