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 --- utils/storage/import_interpolation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/storage/import_interpolation.cpp') 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); -- cgit