summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-17 21:47:23 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:57:14 -0300
commit2ff390e087587f755ec09a2ccf2bcd673e6272a5 (patch)
treeeed10fc013366b6af5dae6d066197e24e9292837 /src/bin/eolian_cxx
parent7af91ee8faafab80553cde9136ea31400c2e3ad4 (diff)
Changed uses of std::abort to assert's with better description
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 93064bc7ae..d68548ce89 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -183,7 +183,7 @@ run(options_type const& opts)
183 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain) 183 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
184 << "Error generating: " << class_name(*klass) 184 << "Error generating: " << class_name(*klass)
185 << std::endl; 185 << std::endl;
186 std::abort(); 186 assert(false && "error generating class");
187} 187}
188 188
189static void 189static void
@@ -201,7 +201,7 @@ database_load(options_type const& opts)
201 { 201 {
202 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain) 202 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
203 << "Eolian failed parsing eot files"; 203 << "Eolian failed parsing eot files";
204 std::abort(); 204 assert(false && "Error parsing eot files");
205 } 205 }
206 if (!opts.in_file.empty()) 206 if (!opts.in_file.empty())
207 { 207 {
@@ -209,14 +209,14 @@ database_load(options_type const& opts)
209 { 209 {
210 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain) 210 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
211 << "Failed parsing: " << opts.in_file << "."; 211 << "Failed parsing: " << opts.in_file << ".";
212 std::abort(); 212 assert(false && "Error parsing input file");
213 } 213 }
214 } 214 }
215 if (!::eolian_all_eo_files_parse()) 215 if (!::eolian_all_eo_files_parse())
216 { 216 {
217 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain) 217 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
218 << "Eolian failed parsing input files"; 218 << "Eolian failed parsing input files";
219 std::abort(); 219 assert(false && "Error parsing input files");
220 } 220 }
221} 221}
222 222
@@ -327,7 +327,7 @@ opts_get(int argc, char **argv)
327 if (!eolian_cxx::opts_check(opts)) 327 if (!eolian_cxx::opts_check(opts))
328 { 328 {
329 _usage(argv[0]); 329 _usage(argv[0]);
330 std::abort(); 330 assert(false && "Wrong options passed in command-line");
331 } 331 }
332 332
333 return opts; 333 return opts;