summaryrefslogtreecommitdiffstats
path: root/Tools/MCADefrag/Globals.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2020-05-10 18:16:38 +0200
committerGitHub <noreply@github.com>2020-05-10 18:16:38 +0200
commit154df6b09d0c39ef9a9b1ee049251b645c13f559 (patch)
treedd5976d81910d369e09b95c35fd89cd8cccb378c /Tools/MCADefrag/Globals.h
parentRemove pkFishingFloat documentation (#4732) (diff)
downloadcuberite-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 '')
-rw-r--r--Tools/MCADefrag/Globals.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/Tools/MCADefrag/Globals.h b/Tools/MCADefrag/Globals.h
index f0e535888..0b871dbe2 100644
--- a/Tools/MCADefrag/Globals.h
+++ b/Tools/MCADefrag/Globals.h
@@ -16,46 +16,15 @@
// Disable some warnings that we don't care about:
#pragma warning(disable:4100)
- #define OBSOLETE __declspec(deprecated)
-
- // No alignment needed in MSVC
- #define ALIGN_8
- #define ALIGN_16
-
- #define NORETURN __declspec(noreturn)
-
#elif defined(__GNUC__)
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
#define abstract
- #define OBSOLETE __attribute__((deprecated))
-
- #define ALIGN_8 __attribute__((aligned(8)))
- #define ALIGN_16 __attribute__((aligned(16)))
-
- // Some portability macros :)
- #define stricmp strcasecmp
-
- #define NORETURN __attribute((__noreturn__))
#else
#error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler"
- /*
- // Copy and uncomment this into another #elif section based on your compiler identification
-
- // Explicitly mark classes as abstract (no instances can be created)
- #define abstract
-
- // Mark functions as obsolete, so that their usage results in a compile-time warning
- #define OBSOLETE
-
- // Mark types / variables for alignment. Do the platforms need it?
- #define ALIGN_8
- #define ALIGN_16
- */
-
#endif
@@ -199,19 +168,6 @@ typedef unsigned char Byte;
#define VERIFY(x) (!!(x) || (LOGERROR("Verification failed: %s, file %s, line %i", #x, __FILE__, __LINE__), exit(1), 0))
-
-
-
-/** A generic interface used mainly in ForEach() functions */
-template <typename Type> class cItemCallback
-{
-public:
- /** Called for each item in the internal list; return true to stop the loop, or false to continue enumerating */
- virtual bool Item(Type * a_Type) = 0;
- virtual ~cItemCallback() {}
-} ;
-
-
#include "BiomeDef.h"