Skip to content

Commit

Permalink
Debug: Added "deng_fakememoryzone" build option
Browse files Browse the repository at this point in the history
Also fixed compilation of libdeng1 with this option.
  • Loading branch information
skyjake committed Jun 28, 2013
1 parent 80e3129 commit c0112db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doomsday/config.pri
Expand Up @@ -118,6 +118,9 @@ CONFIG(debug, debug|release) {
DEFINES += NDEBUG
}

# Debugging options.
deng_fakememoryzone: DEFINES += LIBDENG_FAKE_MEMORY_ZONE

# Check for Qt 5.
greaterThan(QT_MAJOR_VERSION, 4): CONFIG += deng_qt5

Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng1/src/memoryzone.c
Expand Up @@ -233,7 +233,7 @@ memblock_t *Z_GetBlock(void *ptr)
}
}
}
Con_Error("Z_GetBlock: There is no memory block for %p.\n", ptr);
DENG_ASSERT(false); // There is no memory block for this.
return NULL;
}
#endif
Expand Down

0 comments on commit c0112db

Please sign in to comment.