diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-14 11:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-14 12:34:23 +0300 |
commit | a7d7346b9eb3fa62a8912e31d5c00f8e05390425 (patch) | |
tree | ba2d006e8aaac74138eb13ba458d30abf8f01182 /src/debug | |
parent | 9569f124d176b4220f28f9a41812c33883737228 (diff) | |
download | mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.gz mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.bz2 mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.xz mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.zip |
some more style fixes from cpplint.
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/debug_new.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/debug/debug_new.cpp b/src/debug/debug_new.cpp index e237fcbdf..bfbc56a4f 100644 --- a/src/debug/debug_new.cpp +++ b/src/debug/debug_new.cpp @@ -57,7 +57,7 @@ #include "localconsts.h" -//define DUMP_MEM_ADDRESSES 1 +// #define DUMP_MEM_ADDRESSES 1 #if !_FAST_MUTEX_CHECK_INITIALIZATION && !defined(_NOTHREADS) #error "_FAST_MUTEX_CHECK_INITIALIZATION not set: check_leaks may not work" @@ -163,9 +163,9 @@ * * Value of the padding bytes at the end of a memory block. */ -//#ifndef M_DEBUG_NEW_TAILCHECK_CHAR -//#define M_DEBUG_NEW_TAILCHECK_CHAR 0xCC -//#endif +// #ifndef M_DEBUG_NEW_TAILCHECK_CHAR +// #define M_DEBUG_NEW_TAILCHECK_CHAR 0xCC +// #endif /** * @def M_DEBUG_NEW_USE_ADDR2LINE @@ -399,7 +399,7 @@ static bool print_position_from_addr(const void*) { return false; } -#endif // M_DEBUG_NEW_USE_ADDR2LINE +#endif // M_DEBUG_NEW_USE_ADDR2LINE /** * Prints the position information of a memory operation point. When \c @@ -420,7 +420,7 @@ static void print_position(const void* ptr, int line) } else if (ptr != nullptr) // Is caller address present? { - if (!print_position_from_addr(ptr)) // Fail to get source position? + if (!print_position_from_addr(ptr)) // Fail to get source position? fprintf(new_output_fp, "%p", ptr); } else // No information is present @@ -778,13 +778,13 @@ void* operator new [](size_t size, const char* file, int line) #endif } -void* operator new (size_t size) //throw(std::bad_alloc) +void* operator new (size_t size) // throw(std::bad_alloc) { return operator new (size, static_cast<char*>( M_DEBUG_NEW_CALLER_ADDRESS), 0); } -void* operator new [](size_t size) //throw(std::bad_alloc) +void* operator new [](size_t size) // throw(std::bad_alloc) { return operator new [](size, static_cast<char*>( M_DEBUG_NEW_CALLER_ADDRESS), 0); @@ -854,7 +854,7 @@ void operator delete [](void* pointer, const std::nothrow_t&) throw() operator delete [](pointer, static_cast<char*>( M_DEBUG_NEW_CALLER_ADDRESS), 0); } -#endif // HAVE_PLACEMENT_DELETE +#endif // HAVE_PLACEMENT_DELETE int __debug_new_counter::_S_count = 0; |