From 205187b561c3b31fa931e73e8f7263f0c4b1de41 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 15 Jun 2017 13:24:25 -0700 Subject: Rename `CoreLib::*` to `Slang` Getting rid of more namespace complexity and stripping things down to the basics. This also gets rid of some dead code in the "core" library. --- source/core/common.h | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'source/core/common.h') diff --git a/source/core/common.h b/source/core/common.h index 517b018a7..ac8456009 100644 --- a/source/core/common.h +++ b/source/core/common.h @@ -11,7 +11,7 @@ #define VARIADIC_TEMPLATE -namespace CoreLib +namespace Slang { typedef int64_t Int64; typedef unsigned short Word; @@ -20,28 +20,25 @@ namespace CoreLib #else typedef int PtrInt; #endif - namespace Basic + class Object { - class Object - { - public: - virtual ~Object() - {} - }; + public: + virtual ~Object() + {} + }; - template - inline T&& _Move(T & obj) - { - return static_cast(obj); - } + template + inline T&& _Move(T & obj) + { + return static_cast(obj); + } - template - inline void Swap(T & v0, T & v1) - { - T tmp = _Move(v0); - v0 = _Move(v1); - v1 = _Move(tmp); - } + template + inline void Swap(T & v0, T & v1) + { + T tmp = _Move(v0); + v0 = _Move(v1); + v1 = _Move(tmp); } } -- cgit v1.2.3