summaryrefslogtreecommitdiffstats
path: root/source/core/common.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-15 13:24:25 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-15 13:24:25 -0700
commit205187b561c3b31fa931e73e8f7263f0c4b1de41 (patch)
tree7bd2cd5ae3c14416b71ef8319ff02ace429d1132 /source/core/common.h
parent517513645afb8eaf4841e7b7035f1ba3a9c7cd57 (diff)
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.
Diffstat (limited to 'source/core/common.h')
-rw-r--r--source/core/common.h37
1 files changed, 17 insertions, 20 deletions
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 <typename T>
- inline T&& _Move(T & obj)
- {
- return static_cast<T&&>(obj);
- }
+ template <typename T>
+ inline T&& _Move(T & obj)
+ {
+ return static_cast<T&&>(obj);
+ }
- template <typename T>
- inline void Swap(T & v0, T & v1)
- {
- T tmp = _Move(v0);
- v0 = _Move(v1);
- v1 = _Move(tmp);
- }
+ template <typename T>
+ inline void Swap(T & v0, T & v1)
+ {
+ T tmp = _Move(v0);
+ v0 = _Move(v1);
+ v1 = _Move(tmp);
}
}