From babc7327eb1f44083bbc0b3218ffed3a383a7f09 Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Tue, 8 Mar 2022 23:04:55 +0800 Subject: [PATCH] feat(miscellaneous): add enumerators such as ENoInit and EInPlace --- .../Source/Public/Miscellaneous/CoreDefines.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Miscellaneous/CoreDefines.h b/Redcraft.Utility/Source/Public/Miscellaneous/CoreDefines.h index 5bfa19c..a90443b 100644 --- a/Redcraft.Utility/Source/Public/Miscellaneous/CoreDefines.h +++ b/Redcraft.Utility/Source/Public/Miscellaneous/CoreDefines.h @@ -33,8 +33,6 @@ // Define the unnamed namespace #define NAMESPACE_UNNAMED_BEGIN namespace { #define NAMESPACE_UNNAMED_END } -#define NAMESPACE_INLINE_UNNAMED_BEGIN inline namespace { -#define NAMESPACE_INLINE_UNNAMED_END } NAMESPACE_REDCRAFT_BEGIN NAMESPACE_MODULE_BEGIN(Redcraft) @@ -43,7 +41,14 @@ NAMESPACE_MODULE_BEGIN(Utility) enum { INDEX_NONE = -1 }; enum { UNICODE_BOM = 0xfeff }; -enum EForceInit { ForceInit }; +enum EForceInit +{ + ForceInit, + ForceInitToZero +}; + +enum ENoInit { NoInit }; +enum EInPlace { InPlace }; NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft)