[vlc-devel] Macros & IDE
jean-paul.saman at planet.nl
Sun Nov 25 10:40:36 CET 2007
Jean-Baptiste Kempf wrote:
> On Sun, Nov 25, 2007, Guy Paddock wrote :
>> Quick question: why does the VLC source use macros so much? I mean, I
>> understand their use for ensuring unique function names in case
>> modules are compiled-in or built separately, but IMO they seem to be
>> overused. Personally, I like to avoid macros like the plague because
>> they're not context-safe, but that's just me.
> I am interested to know also why we use huge #defines when we could do
> enum. Is this better code-size wise ? Faster ?
Defines are resolved at compile time, while enums are runtime used.
More information about the vlc-devel