feat(miscellaneous): add attribute specifier support
This commit is contained in:
parent
beaf5635ba
commit
e03cfa956c
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreTypes.h"
|
||||
#include "Memory/Memory.h"
|
||||
#include "Templates/Utility.h"
|
||||
#include "Concepts/Comparable.h"
|
||||
#include "TypeTraits/TypeTraits.h"
|
||||
|
@ -6,6 +6,16 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
#define NORETURN [[noreturn]]
|
||||
#define CARRIES_DEPENDENCY [[carries_dependency]]
|
||||
#define DEPRECATED(Message) [[deprecated(Message)]]
|
||||
#define FALLTHROUGH [[fallthrough]]
|
||||
#define NODISCARD(Message) [[nodiscard(Message)]]
|
||||
#define MAYBE_UNUSED [[maybe_unused]]
|
||||
#define LIKELY [[likely]]
|
||||
#define UNLIKELY [[unlikely]]
|
||||
#define NO_UNIQUE_ADDRESS [[no_unique_address]]
|
||||
|
||||
constexpr size_t INDEX_NONE = -1;
|
||||
constexpr WIDECHAR UNICODE_BOM = 0xfeff;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user