summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
commit13ddc5dbc165f3fead4a70301073bc901dbc1269 (patch)
tree2d4022f6bf3ffcf332efae28aae436e9b9a6f678 /src/bindings
parentd0fed247bbb18933b3d5c086126ac0f7b8d05e76 (diff)
eolian: rename @warn_unused and its associated API
@warn_unused in syntax is now called @no_unused - this is because "warning about unused" is a C thing (or rather, an extension to C) and various languages might want to use stricter behavior for this. Its associated API does the reverse now - it lets you query whether being unused is allowed at all. This is to match future behavior of Eolian (once it supports versioning) that will likely reverse it. @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 48f5027542..6db54dc0d0 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -373,7 +373,7 @@ ffi.cdef [[
373 const Eolian_Type *eolian_function_return_type_get(const Eolian_Function *function_id, Eolian_Function_Type ftype); 373 const Eolian_Type *eolian_function_return_type_get(const Eolian_Function *function_id, Eolian_Function_Type ftype);
374 const Eolian_Expression *eolian_function_return_default_value_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype); 374 const Eolian_Expression *eolian_function_return_default_value_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype);
375 const Eolian_Documentation *eolian_function_return_documentation_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype); 375 const Eolian_Documentation *eolian_function_return_documentation_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype);
376 Eina_Bool eolian_function_return_is_warn_unused(const Eolian_Function *foo_id, Eolian_Function_Type ftype); 376 Eina_Bool eolian_function_return_allow_unused(const Eolian_Function *foo_id, Eolian_Function_Type ftype);
377 Eina_Bool eolian_function_object_is_const(const Eolian_Function *function_id); 377 Eina_Bool eolian_function_object_is_const(const Eolian_Function *function_id);
378 const Eolian_Class *eolian_function_class_get(const Eolian_Function *function_id); 378 const Eolian_Class *eolian_function_class_get(const Eolian_Function *function_id);
379 const Eolian_Class *eolian_implement_class_get(const Eolian_Implement *impl); 379 const Eolian_Class *eolian_implement_class_get(const Eolian_Implement *impl);
@@ -1214,8 +1214,8 @@ M.Function = ffi.metatype("Eolian_Function", {
1214 return v 1214 return v
1215 end, 1215 end,
1216 1216
1217 return_is_warn_unused = function(self, ftype) 1217 return_allow_unused = function(self, ftype)
1218 return eolian.eolian_function_return_is_warn_unused(self, 1218 return eolian.eolian_function_return_allow_unused(self,
1219 ftype) ~= 0 1219 ftype) ~= 0
1220 end, 1220 end,
1221 1221