From 5606b4c399404c0b8f745c6702d70f26eff8b371 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 25 Mar 2024 19:32:02 +0100 Subject: Update to Clang 18, C++23, rework allocator --- deimos/core/base.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'deimos/core/base.h') diff --git a/deimos/core/base.h b/deimos/core/base.h index 0530db7..ea14610 100644 --- a/deimos/core/base.h +++ b/deimos/core/base.h @@ -48,6 +48,19 @@ struct uint128 uint64 low; }; +struct SourceLocation +{ + const char* file; + int32 line; + + constexpr SourceLocation( // NOLINT + const char* file_ = __builtin_FILE(), + int32 line_ = __builtin_LINE()) : + file{file_}, + line{line_} + {} +}; + template struct RemoveReferenceT { using Type = T; }; template struct RemoveReferenceT { using Type = T; }; template struct RemoveReferenceT { using Type = T; }; -- cgit