5#if !defined(__XTD_CORE_INTERNAL__)
6#error "Do not include this file: Internal use only"
11#define __XTD_STD_INTERNAL__
13#undef __XTD_STD_INTERNAL__
15#if defined(__xtd__cpp_lib_source_location)
16#include <source_location>
17using __xtd_source_location__ = std::source_location;
21#define __XTD_FILE__ __builtin_FILE()
22#define __XTD_LINE__ __builtin_LINE()
23#define __XTD_FUNC__ __builtin_FUNCTION()
24#define __XTD_COLUMN__ __builtin_COLUMN()
26class __xtd_source_location__ {
28 const char* file_name() const noexcept {
return data_.file;}
29 uint32_t line() const noexcept {
return data_.line;}
30 const char* function_name() const noexcept {
return data_.func;}
31 uint32_t column() const noexcept {
return data_.column;}
33 static __xtd_source_location__ current(
const char* file = __XTD_FILE__, uint32_t line = __XTD_LINE__,
const char* func = __XTD_FUNC__, uint32_t column = __XTD_COLUMN__)
noexcept {
34 auto csl = __xtd_source_location__ {};
35 csl.data_ = {file, line,
func, column};
Contains __xtd_std_version definitions.
delegate< result_t(arguments_t...)> func
Represents a delegate that has variables parameters and returns a value of the type specified by the ...
Definition func.hpp:16