[vlc-devel] Macros & IDE
Pierre d'Herbemont
pdherbemont at free.fr
Sun Dec 2 22:45:09 CET 2007
On Dec 2, 2007, at 5:25 AM, Jean-Baptiste Kempf wrote:
> OK. So what should we do ?
Well, we could try to open a ticket for it. BTW, most of the enum we
already have in VLC follow the #define naming scheme, which is...
bothering.
"Rationalize preprocessor usage"
- Use enum where possible instead of #define
(We have to be careful to understand that sometimes #ifdef the const
is useful.)
- Avoid #define function where possible, and prefer static inline
We could add:
- Avoid certain static inline, if the performance impact isn't
noticable.
Pierre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071202/546eff6e/attachment.html>
More information about the vlc-devel
mailing list