mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
+ Got rid of zip lib requirement in G3D...
Still can re-enable code by defining _HAVE_ZIP...
+ Remove silly X11 lib dependency from G3D
Code doesn't seem to do anything yet anyway, and even if, we don't want it :p
+ Fix another weird G3D build problem...
+ Remove some __asm usage in g3d, which is not available on Win64
My editor also decided to remove a ton of trailing white spaces...tss...
+ Reapply G3D fixes for 64bit VC
+ not use SSE specific header when SSE not enabled in *nix
+ Updated project files
+ New vmap_assembler VC90/VC80 Project
+ vmap assembler binaries updates
NOTE: Old vmap fikes expected work (as tests show) with new library version.
But better use new generated versions. Its different in small parts to bad or good...
(based on Lynx3d's repo commit 44798d3)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
66 lines
1.2 KiB
C++
66 lines
1.2 KiB
C++
/**
|
|
@file debug.h
|
|
|
|
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
|
|
|
|
@created 2001-08-26
|
|
@edited 2006-02-16
|
|
|
|
Copyright 2000-2006, Morgan McGuire.
|
|
All rights reserved.
|
|
*/
|
|
|
|
#ifndef G3D_DEBUG_H
|
|
#define G3D_DEBUG_H
|
|
|
|
#include "G3D/platform.h"
|
|
#ifdef _MSC_VER
|
|
#include <crtdbg.h>
|
|
#endif
|
|
|
|
#include "G3D/debugPrintf.h"
|
|
#include "G3D/debugAssert.h"
|
|
|
|
namespace G3D {
|
|
|
|
#ifdef _MSC_VER
|
|
// Turn off 64-bit warnings
|
|
# pragma warning(push)
|
|
# pragma warning( disable : 4312)
|
|
# pragma warning( disable : 4267)
|
|
# pragma warning( disable : 4311)
|
|
#endif
|
|
|
|
|
|
/**
|
|
Useful for debugging purposes.
|
|
*/
|
|
inline bool isValidHeapPointer(const void* x) {
|
|
#ifdef _MSC_VER
|
|
return
|
|
(x != (void*)0xcccccccc) && (x != (void*)0xdeadbeef) && (x != (void*)0xfeeefeee);
|
|
#else
|
|
return x != NULL;
|
|
#endif
|
|
}
|
|
|
|
/**
|
|
Returns true if the pointer is likely to be
|
|
a valid pointer (instead of an arbitrary number).
|
|
Useful for debugging purposes.
|
|
*/
|
|
inline bool isValidPointer(const void* x) {
|
|
#ifdef _MSC_VER
|
|
return x != ((void*)0xcccccccc) && (x != (void*)0xdeadbeef) && (x != (void*)0xfeeefeee);
|
|
#else
|
|
return x != NULL;
|
|
#endif
|
|
}
|
|
|
|
#ifdef _MSC_VER
|
|
# pragma warning(pop)
|
|
#endif
|
|
|
|
}
|
|
|
|
#endif
|