From 5d771f7558f8f50af47ee1a4e2153c2bdda7817e Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Thu, 2 Dec 2021 22:50:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E5=9D=97=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E7=A9=BA=E9=97=B4=E5=A3=B0=E6=98=8E=20=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E7=AC=A6=E5=8F=B7=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Redcraft.Utility/Source/Public/Misc/CoreDefines.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Redcraft.Utility/Source/Public/Misc/CoreDefines.h b/Redcraft.Utility/Source/Public/Misc/CoreDefines.h index 746f8ae..06976ea 100644 --- a/Redcraft.Utility/Source/Public/Misc/CoreDefines.h +++ b/Redcraft.Utility/Source/Public/Misc/CoreDefines.h @@ -5,6 +5,14 @@ #define NAMESPACE_END(Name) } #define NAMESPACE_USING(Name) using namespace Name; +// Define the inline namespace +#define NAMESPACE_INLINE_BEGIN(Name) inline NAMESPACE_BEGIN(Name) +#define NAMESPACE_INLINE_END(Name) NAMESPACE_END(Name) + +// Define the module namespace +#define NAMESPACE_MODULE_BEGIN(Name) NAMESPACE_INLINE_BEGIN(Name) +#define NAMESPACE_MODULE_END(Name) NAMESPACE_INLINE_END(Name) + // Define the redcraft master namespace #define NAMESPACE_REDCRAFT RFur #define NAMESPACE_REDCRAFT_BEGIN NAMESPACE_BEGIN(NAMESPACE_REDCRAFT) @@ -30,10 +38,12 @@ #define NAMESPACE_DEFINE(Source, Target) NAMESPACE_BEGIN(Target) NAMESPACE_USING(Source) NAMESPACE_END(Target) NAMESPACE_REDCRAFT_BEGIN +NAMESPACE_MODULE_BEGIN(Utility) enum { INDEX_NONE = -1 }; enum { UNICODE_BOM = 0xfeff }; enum EForceInit { ForceInit }; +NAMESPACE_MODULE_END(Utility) NAMESPACE_REDCRAFT_END