diff options
author | peterbell10 <peterbell10@live.co.uk> | 2020-05-10 18:16:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 18:16:38 +0200 |
commit | 154df6b09d0c39ef9a9b1ee049251b645c13f559 (patch) | |
tree | dd5976d81910d369e09b95c35fd89cd8cccb378c /src/Globals.h | |
parent | Remove pkFishingFloat documentation (#4732) (diff) | |
download | cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.gz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.bz2 cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.lz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.xz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.zst cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.zip |
Diffstat (limited to 'src/Globals.h')
-rw-r--r-- | src/Globals.h | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/src/Globals.h b/src/Globals.h index e6fde373e..121dd42d4 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -36,17 +36,6 @@ // 2014_01_06 xoft: Disabled this warning because MSVC is stupid and reports it in obviously wrong places // #pragma warning(3 : 4244) // Conversion from 'type1' to 'type2', possible loss of data - #define OBSOLETE __declspec(deprecated) - - #define NORETURN __declspec(noreturn) - #if (_MSC_VER < 1900) // noexcept support was added in VS 2015 - #define NOEXCEPT throw() - #define CAN_THROW throw(...) - #else - #define NOEXCEPT noexcept - #define CAN_THROW noexcept(false) - #endif - // Use non-standard defines in <cmath> #define _USE_MATH_DEFINES @@ -73,17 +62,6 @@ // TODO: Can GCC explicitly mark classes as abstract (no instances can be created)? #define abstract - // override is part of c++11 - #if __cplusplus < 201103L - #define override - #endif - - #define OBSOLETE __attribute__((deprecated)) - - #define NORETURN __attribute((__noreturn__)) - #define NOEXCEPT noexcept - #define CAN_THROW noexcept(false) - #else #error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler" @@ -91,15 +69,6 @@ #endif - - -#ifdef _DEBUG - #define NORETURNDEBUG NORETURN -#else - #define NORETURNDEBUG -#endif - - #include <stddef.h> @@ -367,15 +336,11 @@ typename std::enable_if<std::is_arithmetic<T>::value, C>::type CeilC(T a_Value) -//temporary replacement for std::make_unique until we get c++14 +// TODO: Replace cpp14 with std at point of use namespace cpp14 { - template <class T, class... Args> - std::unique_ptr<T> make_unique(Args&&... args) - { - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); - } +using std::make_unique; } // a tick is 50 ms |