Just bear in mind that the demo fails for 2.1 etc. I wonder if it would be worth adding a macro like EFL_VERSION_MIN(1, 18) Or as Mike points out (1, 17, 99).
Andy On Wed, 24 Feb 2016 at 22:49, Carsten Haitzler <ras...@rasterman.com> wrote: > On Wed, 24 Feb 2016 17:44:42 +0000 Mike Blumenkrantz > <michael.blumenkra...@gmail.com> said: > > > It's possible to #define constants in embryo, such as ones used for > version > > checking. I haven't found any reference for how to detect them in a > script, > > however. Any #if directive gets handled by epp during edje compilation, > and > > using other statements involving the constant will result in compile > > failure due to undefined references. > > > > Is there any sample code for this in existence? > yeah... that's a problem. epp gets to the #... before embryo_cc ... so > there is > no way to do #if.... you CAN use defines from default.inc as they expand > later > but you cant #if etc. ... the best way to do this is use EFL_VERSION_MAJOR > and > EFL_VERSION_MINOR that are defined and know that efl is distributed and > required to be "in step" so > > #if (EFL_VERSION_MAJOR >= 1) && (EFL_VERSION_MINOR >= 18) > ... > #endif > > for example :) > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com > > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel