diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-01-11 02:29:29 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-01-11 02:44:26 +0100 |
commit | ab77b3191807d995fbf6e3dbd41481d713022942 (patch) | |
tree | f2561f7e95c3d21f0b4ab47337cd72c85db5eaf4 /crawl-ref/source/store.cc | |
parent | 78595a95c0f61082cab144f78dc4ddd86502acc3 (diff) | |
download | crawl-ref-ab77b3191807d995fbf6e3dbd41481d713022942.tar.gz crawl-ref-ab77b3191807d995fbf6e3dbd41481d713022942.zip |
Give all ASSERT(false) proper messages.
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r-- | crawl-ref/source/store.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc index 33f4e93409..66a56463e0 100644 --- a/crawl-ref/source/store.cc +++ b/crawl-ref/source/store.cc @@ -125,7 +125,7 @@ CrawlStoreValue::CrawlStoreValue(const CrawlStoreValue &other) } case NUM_STORE_VAL_TYPES: - ASSERT(false); + die("unknown stored value type"); } } @@ -557,7 +557,7 @@ void CrawlStoreValue::write(writer &th) const break; case NUM_STORE_VAL_TYPES: - ASSERT(false); + die("unknown stored value type"); } } @@ -673,7 +673,7 @@ void CrawlStoreValue::read(reader &th) break; case NUM_STORE_VAL_TYPES: - ASSERT(false); + die("unknown stored value type"); } } @@ -750,7 +750,7 @@ CrawlVector &CrawlStoreValue::new_vector(store_val_type _type, field = (_type) val._float; \ break; \ default: \ - ASSERT(false); \ + die("unknown stored value type"); \ } \ type = (x); \ } \ @@ -983,8 +983,7 @@ CrawlStoreValue::operator bool() const case SV_INT: \ return get_int(); \ default: \ - ASSERT(false); \ - return 0; \ + die("unknown stored value type"); \ } CrawlStoreValue::operator char() const @@ -1145,7 +1144,7 @@ CrawlStoreValue &CrawlStoreValue::operator = (const dlua_chunk &_val) } \ \ default: \ - ASSERT(false); \ + die("unknown stored value type"); \ return 0; \ } |