Use _DEBUG and NDEBUG instead of DEBUGMODE

DEBUGMODE macro came from Allegro 4.
This commit is contained in:
David Capello 2015-12-04 12:38:57 -03:00
parent 7125643feb
commit 98f026731e
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif() endif()
if(MSVC) if(MSVC)
set(CMAKE_C_FLAGS_PROFILE "/MD /Zi /Ox /Gd /D NDEBUG" set(CMAKE_C_FLAGS_PROFILE "/MD /Zi /Ox /Gd"
CACHE STRING "Profiling C flags") CACHE STRING "Profiling C flags")
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_C_FLAGS_PROFILE}" set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_C_FLAGS_PROFILE}"
CACHE STRING "Profiling C++ flags") CACHE STRING "Profiling C++ flags")

View File

@ -91,7 +91,7 @@ void Context::executeCommand(Command* command, const Params& params)
console.printf("An error ocurred executing the command.\n\nDetails:\n%s", e.what()); console.printf("An error ocurred executing the command.\n\nDetails:\n%s", e.what());
} }
#ifndef DEBUGMODE #ifdef NDEBUG
catch (...) { catch (...) {
LOG("Context: Unknown exception executing '%s' command\n", LOG("Context: Unknown exception executing '%s' command\n",
command->id().c_str()); command->id().c_str());

View File

@ -894,7 +894,7 @@ static void put_fileitem(FileItem* fileitem)
ASSERT(fileitem->keyname != NOTINITIALIZED); ASSERT(fileitem->keyname != NOTINITIALIZED);
#ifdef DEBUGMODE #ifdef _DEBUG
FileItemMap::iterator it = fileitems_map->find(get_key_for_pidl(fileitem->fullpidl)); FileItemMap::iterator it = fileitems_map->find(get_key_for_pidl(fileitem->fullpidl));
ASSERT(it == fileitems_map->end()); ASSERT(it == fileitems_map->end());
#endif #endif