mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 00:19:13 +00:00
Use _DEBUG and NDEBUG instead of DEBUGMODE
DEBUGMODE macro came from Allegro 4.
This commit is contained in:
parent
7125643feb
commit
98f026731e
@ -76,7 +76,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
||||
endif()
|
||||
|
||||
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")
|
||||
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_C_FLAGS_PROFILE}"
|
||||
CACHE STRING "Profiling C++ flags")
|
||||
|
@ -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());
|
||||
}
|
||||
#ifndef DEBUGMODE
|
||||
#ifdef NDEBUG
|
||||
catch (...) {
|
||||
LOG("Context: Unknown exception executing '%s' command\n",
|
||||
command->id().c_str());
|
||||
|
@ -894,7 +894,7 @@ static void put_fileitem(FileItem* fileitem)
|
||||
|
||||
ASSERT(fileitem->keyname != NOTINITIALIZED);
|
||||
|
||||
#ifdef DEBUGMODE
|
||||
#ifdef _DEBUG
|
||||
FileItemMap::iterator it = fileitems_map->find(get_key_for_pidl(fileitem->fullpidl));
|
||||
ASSERT(it == fileitems_map->end());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user