feat(miscellaneous): add attribute specifier support

This commit is contained in:
_Redstone_c_ 2022-03-19 23:07:04 +08:00
parent beaf5635ba
commit e03cfa956c
2 changed files with 11 additions and 0 deletions

View File

@ -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"

View File

@ -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;