blob: de8a9bce5bc826dc7f99b172b12278d57d0c5d2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
#ifndef HEADERS_SOURCELOCATION_H
#define HEADERS_SOURCELOCATION_H
#include <KernelTest.fwrk/headers/Foundation.h>
class KTSourceLocation;
/// ================================================================================
/// @brief SourceLocation class for Kernel Test Framework.
/// ================================================================================
class KTSourceLocation final CF_OBJECT {
public:
KTSourceLocation() = delete;
~KTSourceLocation() override = default;
LIBSYS_COPY_DELETE(KTSourceLocation);
public:
KTSourceLocation(const Char*, const SInt32 = 0UL);
CF::CFString& File() { return mFile; }
SInt32 Line() { return mLine; }
CF::CFString operator()();
private:
CF::CFString mFile{4096};
SInt32 mLine{0U};
};
#endif
|