diff options
| author | Peng Wu <alexepico@gmail.com> | 2022-06-06 17:32:00 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2022-06-06 17:32:00 +0800 |
| commit | 2323c59d337ca56c585a8b58b855e84938ecfc27 (patch) | |
| tree | dc32a1af5a593170bd6149d361521832f1885ca5 /src/storage/pinyin_parser2.cpp | |
| parent | 5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (diff) | |
| download | libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.gz libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.xz libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.zip | |
Use abort function instead of assert macro
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
| -rw-r--r-- | src/storage/pinyin_parser2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 17aa358..ce640c3 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -395,7 +395,7 @@ bool FullPinyinParser2::set_scheme(FullPinyinScheme scheme){ m_pinyin_index_len = G_N_ELEMENTS(secondary_zhuyin_index); break; default: - assert(false); + abort(); } return true; } @@ -608,7 +608,7 @@ bool DoublePinyinParser2::set_scheme(DoublePinyinScheme scheme) { m_fallback_table = double_pinyin_xhe_fallback; return true; case DOUBLE_PINYIN_CUSTOMIZED: - assert(FALSE); + abort(); }; return false; /* no such scheme. */ |
