KTL
Loading...
Searching...
No Matches
source_location.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5#if __cpp_lib_source_location >= 201907L
6#define KTL_SOURCE_LOCATION
7#include <source_location>
8
9#define KTL_SOURCE() std::source_location::current()
10#else
11#define KTL_SOURCE() {}
12#endif
13
14namespace ktl
15{
16#ifdef KTL_SOURCE_LOCATION
17 using source_location = std::source_location;
18#else
19 struct source_location {};
20#endif
21}
Definition cascading.h:16
Definition source_location.h:19