summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 16:34:40 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 16:35:59 +0100
commitcdd4860520f428f64dbf8ddb3ae05cf6bc75cf41 (patch)
tree72f3d8ae6a30f1d5948cf35a0851fd578e34a987 /src/bin/eolian_cxx
parentc1afa1b6b5b90df8e688841d84a250fe03e9f029 (diff)
eolian: turn db validation into separate API
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 8090f3cf97..4a689c50fb 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -219,6 +219,12 @@ database_load(options_type const& opts)
219 << "Eolian failed parsing input files"; 219 << "Eolian failed parsing input files";
220 assert(false && "Error parsing input files"); 220 assert(false && "Error parsing input files");
221 } 221 }
222 if (!::eolian_database_validate())
223 {
224 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
225 << "Eolian failed validating database.";
226 assert(false && "Error validating database");
227 }
222} 228}
223 229
224} // namespace eolian_cxx { 230} // namespace eolian_cxx {