summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-02-10 16:04:01 +0000
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-02-10 16:05:07 +0000
commit30bc1d285b871efe54a65b2c58cccea20b168817 (patch)
tree809d02e53ceebb5a6f71761a4fc611d820ef0d17 /src/bindings
parent1ef076b412f3e35d576422bde74aec97d304d8a3 (diff)
eolian: allow silencing of type errors in validation
This allows generators to silence type errors in validation in order to reduce duplicate error messages when generating multiple files. Also adjusted the C generator to only emit type errors when generating Eo header files. @feature
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index a517631648..3192703f7e 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -188,7 +188,7 @@ ffi.cdef [[
188 Eina_Bool eolian_system_directory_scan(); 188 Eina_Bool eolian_system_directory_scan();
189 Eina_Bool eolian_all_eo_files_parse(); 189 Eina_Bool eolian_all_eo_files_parse();
190 Eina_Bool eolian_all_eot_files_parse(); 190 Eina_Bool eolian_all_eot_files_parse();
191 Eina_Bool eolian_database_validate(void); 191 Eina_Bool eolian_database_validate(Eina_Bool silent_types);
192 const Eolian_Class *eolian_class_get_by_name(const char *class_name); 192 const Eolian_Class *eolian_class_get_by_name(const char *class_name);
193 const Eolian_Class *eolian_class_get_by_file(const char *file_name); 193 const Eolian_Class *eolian_class_get_by_file(const char *file_name);
194 const char *eolian_class_file_get(const Eolian_Class *klass); 194 const char *eolian_class_file_get(const Eolian_Class *klass);
@@ -402,8 +402,8 @@ M.all_eot_files_get = function()
402 return iterator.String_Iterator(eolian.eolian_all_eot_files_get()) 402 return iterator.String_Iterator(eolian.eolian_all_eot_files_get())
403end 403end
404 404
405M.database_validate = function() 405M.database_validate = function(silent)
406 return eolian.eolian_database_validate() ~= 0 406 return eolian.eolian_database_validate((not not silent) or false) ~= 0
407end 407end
408 408
409M.declaration_type = { 409M.declaration_type = {