summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 18:10:02 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 18:10:02 +0100
commit957a89168ba327c7c754af45894b9345a971561d (patch)
treeae40e5477e7d8fdba54e181d5d0d4bd11e29c47e /src/bindings
parentd2365e6267c8bcd22c96176e4356328e6b6bfaef (diff)
eolian: precompute all enum field values (faster runtime, constness)
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 334d141292..f9f616867d 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -270,10 +270,10 @@ ffi.cdef [[
270 const char *eolian_type_struct_field_description_get(const Eolian_Struct_Type_Field *fl); 270 const char *eolian_type_struct_field_description_get(const Eolian_Struct_Type_Field *fl);
271 const Eolian_Type *eolian_type_struct_field_type_get(const Eolian_Struct_Type_Field *fl); 271 const Eolian_Type *eolian_type_struct_field_type_get(const Eolian_Struct_Type_Field *fl);
272 Eina_Iterator *eolian_type_enum_fields_get(const Eolian_Type *tp); 272 Eina_Iterator *eolian_type_enum_fields_get(const Eolian_Type *tp);
273 Eolian_Enum_Type_Field *eolian_type_enum_field_get(const Eolian_Type *tp, const char *field); 273 const Eolian_Enum_Type_Field *eolian_type_enum_field_get(const Eolian_Type *tp, const char *field);
274 const char *eolian_type_enum_field_name_get(const Eolian_Enum_Type_Field *fl); 274 const char *eolian_type_enum_field_name_get(const Eolian_Enum_Type_Field *fl);
275 const char *eolian_type_enum_field_description_get(const Eolian_Enum_Type_Field *fl); 275 const char *eolian_type_enum_field_description_get(const Eolian_Enum_Type_Field *fl);
276 const Eolian_Expression *eolian_type_enum_field_value_get(Eolian_Enum_Type_Field *fl, Eina_Bool force); 276 const Eolian_Expression *eolian_type_enum_field_value_get(const Eolian_Enum_Type_Field *fl, Eina_Bool force);
277 const char *eolian_type_enum_legacy_prefix_get(const Eolian_Type *tp); 277 const char *eolian_type_enum_legacy_prefix_get(const Eolian_Type *tp);
278 const char *eolian_type_description_get(const Eolian_Type *tp); 278 const char *eolian_type_description_get(const Eolian_Type *tp);
279 const char *eolian_type_file_get(const Eolian_Type *tp); 279 const char *eolian_type_file_get(const Eolian_Type *tp);
@@ -510,7 +510,7 @@ M.Type = ffi.metatype("Eolian_Type", {
510 end, 510 end,
511 511
512 enum_fields_get = function(self) 512 enum_fields_get = function(self)
513 return Ptr_Iterator("Eolian_Enum_Type_Field*", 513 return Ptr_Iterator("const Eolian_Enum_Type_Field*",
514 eolian.eolian_type_enum_fields_get(self)) 514 eolian.eolian_type_enum_fields_get(self))
515 end, 515 end,
516 516