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 /utils/storage/import_interpolation.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 'utils/storage/import_interpolation.cpp')
-rw-r--r-- | utils/storage/import_interpolation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/storage/import_interpolation.cpp b/utils/storage/import_interpolation.cpp index b673a76..a07ed47 100644 --- a/utils/storage/import_interpolation.cpp +++ b/utils/storage/import_interpolation.cpp @@ -118,7 +118,7 @@ bool parse_body(FILE * input, PhraseLargeTable3 * phrase_table, parse_bigram(input, phrase_table, phrase_index, bigram); goto retry; default: - assert(FALSE); + abort(); } } while (my_getline(input) != -1) ; @@ -152,7 +152,7 @@ bool parse_unigram(FILE * input, PhraseLargeTable3 * phrase_table, case GRAM_2_LINE: goto end; default: - assert(FALSE); + abort(); } } while (my_getline(input) != -1); @@ -220,7 +220,7 @@ bool parse_bigram(FILE * input, PhraseLargeTable3 * phrase_table, case GRAM_2_LINE: goto end; default: - assert(FALSE); + abort(); } } while (my_getline(input) != -1); |