ManaPlus
|
#include <debug_new.h>
Public Member Functions | |
debug_new_counter () | |
~debug_new_counter () | |
Static Private Attributes | |
static int | _S_count = 0 |
Counter class for on-exit leakage check.
This technique is learnt from The C++ Programming Language by Bjarne Stroustup.
Definition at line 195 of file debug_new.h.
debug_new_counter::debug_new_counter | ( | ) |
Constructor to increment the count.
Definition at line 962 of file debug_new.cpp.
References _S_count.
debug_new_counter::~debug_new_counter | ( | ) |
Destructor to decrement the count. When the count is zero, nvwa::check_leaks will be called.
Definition at line 971 of file debug_new.cpp.
References _S_count, check_leaks(), new_autocheck_flag, new_output_fp, and new_verbose_flag.
|
staticprivate |
Count of source files that use debug_new.
Definition at line 197 of file debug_new.h.
Referenced by debug_new_counter(), and ~debug_new_counter().