Disable Gold-only weapons for Regular edition (Tim Beckmann)

fixed compiling with -DNDEBUG
This commit is contained in:
Steven Fuller 2002-02-09 19:30:43 +00:00 committed by Patryk Obara
parent 47d9cc1b2c
commit e681d155d9
8 changed files with 70 additions and 20 deletions

View file

@ -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())
{

View file

@ -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