Disable Gold-only weapons for Regular edition (Tim Beckmann)
fixed compiling with -DNDEBUG
This commit is contained in:
parent
47d9cc1b2c
commit
e681d155d9
8 changed files with 70 additions and 20 deletions
|
@ -228,7 +228,7 @@ namespace AwTl
|
|||
db_log1(("AW: Potential Memory Leaks Detected!!!"));
|
||||
}
|
||||
#ifdef _CPPRTTI
|
||||
#warning "Run-Time Type Identification (RTTI) is enabled"
|
||||
//#warning "Run-Time Type Identification (RTTI) is enabled"
|
||||
for (Iterator itLeak(*this) ; !itLeak.Done() ; itLeak.Next())
|
||||
{
|
||||
db_logf1(("\tAW Object not deallocated: Type: %s RefCnt: %u",typeid(*itLeak.Get()).name(),itLeak.Get()->m_nRefCnt));
|
||||
|
@ -238,7 +238,7 @@ namespace AwTl
|
|||
db_log1(("AW: Object dump complete"));
|
||||
}
|
||||
#else // ! _CPPRTTI
|
||||
#warning "Run-Time Type Identification (RTTI) is not enabled - memory leak checking will not report types"
|
||||
//#warning "Run-Time Type Identification (RTTI) is not enabled - memory leak checking will not report types"
|
||||
unsigned nRefs(0);
|
||||
for (Iterator itLeak(*this) ; !itLeak.Done() ; itLeak.Next())
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define fail if (0)
|
||||
static void fail(...) {}
|
||||
#define list_fail_get_data_from_sentinel NULL
|
||||
#define list_fail_add_entry_after NULL
|
||||
#define list_fail_add_entry_before NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue