On Monday 19 October 2015 13:27, Olivier BATARD wrote :
> Hello,
>
>
> I'm a C developer, and I'm learning EFL via the get started
> documentation (https://www.enlightenment.org/docs/efl/start).
>
> The code presented is quite simple but there one instruction I don't
> understand :
>
> <code>
> EAPI_MAIN int
> </code>
>
> I can't find in the documentation what EAPI_MAIN means. Is it a pre
> processor declare statement ?
>
> Thanks for your help.
>
> Olivier.
Hi,
it's a pre processor macros
EAPI_MAIN -> EAPI -> __attribute__ ((visibility("default")))
so you can compile with -fvisibility=hidden and thus shrink the size of
your .so export table (only the EAPI marked symbols will be visible).
here are the links:
https://git.enlightenment.org/core/elementary.git/tree/src/lib/Elementary.h.in
line 125
https://git.enlightenment.org/core/efl.git/tree/src/lib/efl/Efl.h
line 27
https://gcc.gnu.org/wiki/Visibility
>
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
--- Hell'O from Yverdoom
Jérémy (jeyzu)
------------------------------------------------------------------------------
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users