From 2323c59d337ca56c585a8b58b855e84938ecfc27 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 6 Jun 2022 17:32:00 +0800 Subject: Use abort function instead of assert macro --- src/storage/chewing_large_table.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/storage/chewing_large_table.cpp') diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp index dccdc8e..e856caf 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -344,7 +344,7 @@ ChewingLengthIndexLevel::~ChewingLengthIndexLevel() { CASE(14); CASE(15); default: - assert(false); + abort(); } } #undef CASE @@ -389,7 +389,7 @@ int ChewingLengthIndexLevel::search(pinyin_option_t options, int phrase_length, CASE(14); CASE(15); default: - assert(false); + abort(); } #undef CASE @@ -545,7 +545,7 @@ int ChewingLengthIndexLevel::add_index(int phrase_length, CASE(14); CASE(15); default: - assert(false); + abort(); } #undef CASE @@ -599,7 +599,7 @@ int ChewingLengthIndexLevel::remove_index(int phrase_length, CASE(14); CASE(15); default: - assert(false); + abort(); } #undef CASE @@ -850,7 +850,7 @@ bool ChewingLengthIndexLevel::load(MemoryChunk * chunk, table_offset_t offset, CASE(14); CASE(15); default: - assert(false); + abort(); } #undef CASE @@ -910,7 +910,7 @@ bool ChewingLengthIndexLevel::store(MemoryChunk * new_chunk, CASE(14); CASE(15); default: - assert(false); + abort(); } #undef CASE @@ -1034,7 +1034,7 @@ bool ChewingLengthIndexLevel::mask_out(phrase_token_t mask, CASE(14); CASE(15); default: - assert(false); + abort(); } } #undef CASE -- cgit