eolian: allow extending eolian-generated classes from within C
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 13 Apr 2017 13:56:15 +0000 (15:56 +0200)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 13 Apr 2017 13:56:15 +0000 (15:56 +0200)
commit53fef30db0aecc191384dae81882b50eba79da1a
tree97cc8965c6e54048963ded7ba073f0b0b1c58a4e
parent8b95b78dee42bf1f10ff48c9be4c34e5db8e6581
eolian: allow extending eolian-generated classes from within C

If you define either the macro MY_CLASS_EXTRA_OPS for normal
methods/properties or MY_CLASS_EXTRA_CLASS_OPS for class methods
or properties, which contains a comma-delimited list of ops defs
(i.e. EFL_OBJECT_OP_FUNC(...), ...) right before including the
generated my_class.eo.c file, the definitions from these will
be included in the actual class. This can be used to override
certain things in a class internally without exposing it to
Eolian, or for testing/debugging.
src/bin/eolian/sources.c
src/tests/eolian/data/class_simple_ref.c
src/tests/eolian/data/override_ref.c