Cleanup: remove _DEBUG define usage
This commit is contained in:
@@ -194,7 +194,7 @@ setCurrentDisplaySetting(
|
|||||||
fprintf(stderr, "Error: XF86VidMode extension missing!\n");
|
fprintf(stderr, "Error: XF86VidMode extension missing!\n");
|
||||||
return GHOST_kFailure;
|
return GHOST_kFailure;
|
||||||
}
|
}
|
||||||
# ifdef _DEBUG
|
# ifdef DEBUG
|
||||||
printf("Using XFree86-VidModeExtension Version %d.%d\n",
|
printf("Using XFree86-VidModeExtension Version %d.%d\n",
|
||||||
majorVersion, minorVersion);
|
majorVersion, minorVersion);
|
||||||
# endif
|
# endif
|
||||||
@@ -240,7 +240,7 @@ setCurrentDisplaySetting(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (best_fit != -1) {
|
if (best_fit != -1) {
|
||||||
# ifdef _DEBUG
|
# ifdef DEBUG
|
||||||
printf("Switching to video mode %dx%d %dx%d %d\n",
|
printf("Switching to video mode %dx%d %dx%d %d\n",
|
||||||
vidmodes[best_fit]->hdisplay, vidmodes[best_fit]->vdisplay,
|
vidmodes[best_fit]->hdisplay, vidmodes[best_fit]->vdisplay,
|
||||||
vidmodes[best_fit]->htotal, vidmodes[best_fit]->vtotal,
|
vidmodes[best_fit]->htotal, vidmodes[best_fit]->vtotal,
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include "utfconv.h"
|
#include "utfconv.h"
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
#ifdef __MINGW32__
|
||||||
|
|
||||||
#if !defined(SHARD_PIDL)
|
#if !defined(SHARD_PIDL)
|
||||||
#define SHARD_PIDL 0x00000001L
|
#define SHARD_PIDL 0x00000001L
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
#ifndef __GPU_BUFFERS_H__
|
#ifndef __GPU_BUFFERS_H__
|
||||||
#define __GPU_BUFFERS_H__
|
#define __GPU_BUFFERS_H__
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
/*#define DEBUG_VBO(X) printf(X)*/
|
/* #define DEBUG_VBO(X) printf(X)*/
|
||||||
#define DEBUG_VBO(X)
|
# define DEBUG_VBO(X)
|
||||||
#else
|
#else
|
||||||
#define DEBUG_VBO(X)
|
# define DEBUG_VBO(X)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct BMesh;
|
struct BMesh;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ extern "C"
|
|||||||
{
|
{
|
||||||
|
|
||||||
// The following prevents a linking error in debug mode for MSVC using the libs in CVS
|
// The following prevents a linking error in debug mode for MSVC using the libs in CVS
|
||||||
#if defined(WITH_OPENEXR) && defined(_WIN32) && defined(_DEBUG) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
#if defined(WITH_OPENEXR) && defined(_WIN32) && defined(DEBUG) && !defined(__MINGW32__)
|
||||||
_CRTIMP void __cdecl _invalid_parameter_noinfo(void)
|
_CRTIMP void __cdecl _invalid_parameter_noinfo(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// Construction/Destruction
|
// Construction/Destruction
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//int gRefCountExpr;
|
//int gRefCountExpr;
|
||||||
#endif
|
#endif
|
||||||
CExpression::CExpression()// : m_cached_calculate(NULL)
|
CExpression::CExpression()// : m_cached_calculate(NULL)
|
||||||
{
|
{
|
||||||
m_refcount = 1;
|
m_refcount = 1;
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountExpr++;
|
//gRefCountExpr++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ public:
|
|||||||
|
|
||||||
virtual CExpression * AddRef() { // please leave multiline, for debugger !!!
|
virtual CExpression * AddRef() { // please leave multiline, for debugger !!!
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountExpr++;
|
//gRefCountExpr++;
|
||||||
assertd(m_refcount < 255);
|
assertd(m_refcount < 255);
|
||||||
#endif
|
#endif
|
||||||
@@ -124,7 +124,7 @@ public:
|
|||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
virtual CExpression* Release(CExpression* complicatedtrick=NULL) {
|
virtual CExpression* Release(CExpression* complicatedtrick=NULL) {
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountExpr--;
|
//gRefCountExpr--;
|
||||||
#endif
|
#endif
|
||||||
if (--m_refcount < 1)
|
if (--m_refcount < 1)
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ effect: constructs a new CIntValue
|
|||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef _DEBUG_
|
#ifdef DEBUG_
|
||||||
m_textval = "Int illegal constructor";
|
m_textval = "Int illegal constructor";
|
||||||
#endif
|
#endif
|
||||||
m_pstrRep=NULL;
|
m_pstrRep=NULL;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ struct SmartCValueRef
|
|||||||
std::vector<SmartCValueRef> gRefList;
|
std::vector<SmartCValueRef> gRefList;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//int gRefCountValue;
|
//int gRefCountValue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ effect: constucts a CValue
|
|||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
//debug(gRefCountValue++) // debugging
|
//debug(gRefCountValue++) // debugging
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountValue++;
|
//gRefCountValue++;
|
||||||
#ifdef CVALUE_DEBUG
|
#ifdef CVALUE_DEBUG
|
||||||
gRefList.push_back(SmartCValueRef(this));
|
gRefList.push_back(SmartCValueRef(this));
|
||||||
@@ -460,7 +460,7 @@ void CValue::DisableRefCount()
|
|||||||
m_refcount--;
|
m_refcount--;
|
||||||
|
|
||||||
//debug(gRefCountValue--);
|
//debug(gRefCountValue--);
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountValue--;
|
//gRefCountValue--;
|
||||||
#endif
|
#endif
|
||||||
m_ValFlags.RefCountDisabled=true;
|
m_ValFlags.RefCountDisabled=true;
|
||||||
@@ -472,7 +472,7 @@ void CValue::ProcessReplica() /* was AddDataToReplica in 2.48 */
|
|||||||
{
|
{
|
||||||
m_refcount = 1;
|
m_refcount = 1;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountValue++;
|
//gRefCountValue++;
|
||||||
#endif
|
#endif
|
||||||
PyObjectPlus::ProcessReplica();
|
PyObjectPlus::ProcessReplica();
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ enum VALUE_DATA_TYPE {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//extern int gRefCountValue; // debugonly variable to check if all CValue Refences are Dereferenced at programexit
|
//extern int gRefCountValue; // debugonly variable to check if all CValue Refences are Dereferenced at programexit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ public:
|
|||||||
// Increase global reference count, used to see at the end of the program
|
// Increase global reference count, used to see at the end of the program
|
||||||
// if all CValue-derived classes have been dereferenced to 0
|
// if all CValue-derived classes have been dereferenced to 0
|
||||||
//debug(gRefCountValue++);
|
//debug(gRefCountValue++);
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountValue++;
|
//gRefCountValue++;
|
||||||
#endif
|
#endif
|
||||||
m_refcount++;
|
m_refcount++;
|
||||||
@@ -264,7 +264,7 @@ public:
|
|||||||
// Decrease global reference count, used to see at the end of the program
|
// Decrease global reference count, used to see at the end of the program
|
||||||
// if all CValue-derived classes have been dereferenced to 0
|
// if all CValue-derived classes have been dereferenced to 0
|
||||||
//debug(gRefCountValue--);
|
//debug(gRefCountValue--);
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
//gRefCountValue--;
|
//gRefCountValue--;
|
||||||
#endif
|
#endif
|
||||||
// Decrease local reference count, if it reaches 0 the object should be freed
|
// Decrease local reference count, if it reaches 0 the object should be freed
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
#undef main
|
#undef main
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _DEBUG
|
#ifndef DEBUG
|
||||||
# define JOYSTICK_ECHO(x)
|
# define JOYSTICK_ECHO(x)
|
||||||
#else
|
#else
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
|
|||||||
Reference in New Issue
Block a user