Skip to content

Commit

Permalink
Preprocessor fixes (#if DEBUG -> #ifdef DEBUG).
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlin-mike authored and Xottab-DUTY committed Aug 5, 2017
1 parent 7f68ed6 commit f27c0fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/xrCore/ptmalloc3/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,7 @@ static int change_mparam(int param_number, int value) {
}
}

#if DEBUG
#ifdef DEBUG
/* ------------------------- Debugging Support --------------------------- */

/* Check properties of any chunk, whether free, inuse, mmapped etc */
Expand Down Expand Up @@ -4456,7 +4456,7 @@ static void** ialloc(mstate m,
}
}

#if DEBUG
#ifdef DEBUG
if (marray != chunks) {
/* final element must have exactly exhausted chunk */
if (element_size != 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/LevelGraphDebugRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "stdafx.h"
#include "LevelGraphDebugRender.hpp"
#if DEBUG
#ifdef DEBUG
#include "xrAICore/Navigation/game_graph.h"
#include "xrAICore/Navigation/level_graph.h"
#include "xrAICore/Navigation/graph_engine.h"
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/LevelGraphDebugRender.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#if DEBUG
#ifdef DEBUG
#include "xrCore/xrCore.h"
#include "Include/xrRender/DebugShader.h"
class CGameGraph;
Expand Down

0 comments on commit f27c0fb

Please sign in to comment.