feat(miscellaneous): add enumerators such as ENoInit and EInPlace

This commit is contained in:
_Redstone_c_ 2022-03-08 23:04:55 +08:00
parent cdc5bd77e9
commit babc7327eb

View File

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