summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/store.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-03-30 11:23:33 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-03-30 11:23:33 +0200
commit8b243758b1efae24a33a128b21259ff0588be6df (patch)
tree2405d250657bec1f310cafbf731d1fdb62dccae4 /crawl-ref/source/store.cc
parent90f83b5d82049fde2d5cdfcf779dd7f5b799c9ab (diff)
downloadcrawl-ref-8b243758b1efae24a33a128b21259ff0588be6df.tar.gz
crawl-ref-8b243758b1efae24a33a128b21259ff0588be6df.zip
Enable some more asserts. Some of these may be expensive.
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r--crawl-ref/source/store.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc
index fa6cc7c01c..0c4d5a3849 100644
--- a/crawl-ref/source/store.cc
+++ b/crawl-ref/source/store.cc
@@ -1424,7 +1424,7 @@ void CrawlHashTable::erase(const std::string key)
if (i != hash_map->end())
{
-#ifdef DEBUG
+#ifdef ASSERTS
CrawlStoreValue &val = i->second;
ASSERT(!(val.flags & SFLAG_NO_ERASE));
#endif
@@ -1601,7 +1601,7 @@ store_val_type CrawlVector::get_type() const
void CrawlVector::assert_validity() const
{
-#ifdef DEBUG
+#ifdef ASSERTS
ASSERT(!(default_flags & SFLAG_UNSET));
ASSERT(max_size > 0);
ASSERT(max_size >= size());
@@ -1729,7 +1729,7 @@ CrawlStoreValue& CrawlVector::pop_back()
void CrawlVector::push_back(CrawlStoreValue val)
{
-#ifdef DEBUG
+#ifdef ASSERTS
if (type != SV_NONE)
ASSERT(type == val.type);