summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table2_kyotodb.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2022-06-06 17:32:00 +0800
committerPeng Wu <alexepico@gmail.com>2022-06-06 17:32:00 +0800
commit2323c59d337ca56c585a8b58b855e84938ecfc27 (patch)
treedc32a1af5a593170bd6149d361521832f1885ca5 /src/storage/chewing_large_table2_kyotodb.cpp
parent5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (diff)
downloadlibpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.gz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.xz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.zip
Use abort function instead of assert macro
Diffstat (limited to 'src/storage/chewing_large_table2_kyotodb.cpp')
-rw-r--r--src/storage/chewing_large_table2_kyotodb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/storage/chewing_large_table2_kyotodb.cpp b/src/storage/chewing_large_table2_kyotodb.cpp
index e57552c..c606982 100644
--- a/src/storage/chewing_large_table2_kyotodb.cpp
+++ b/src/storage/chewing_large_table2_kyotodb.cpp
@@ -179,7 +179,7 @@ int ChewingLargeTable2::search_internal(int phrase_length,
CASE(15);
CASE(16);
default:
- assert(false);
+ abort();
}
#undef CASE
@@ -277,7 +277,7 @@ int ChewingLargeTable2::add_index_internal(int phrase_length,
CASE(15);
CASE(16);
default:
- assert(false);
+ abort();
}
#undef CASE
@@ -348,7 +348,7 @@ int ChewingLargeTable2::remove_index_internal(int phrase_length,
CASE(15);
CASE(16);
default:
- assert(false);
+ abort();
}
#undef CASE
@@ -409,12 +409,12 @@ public:
CASE(15);
CASE(16);
default:
- assert(false);
+ abort();
}
#undef CASE
- assert(false);
+ abort();
return NOP;
}