[vlc-devel] [DISCUSSION] To use or not to use EMPTY_STR?
Rémi Denis-Courmont
remi at remlab.net
Fri Aug 5 14:57:20 CEST 2016
Le 2016-08-05 14:44, Filip Roséen a écrit :
> The questions raised also applies to macros such as VLC_UNUSED,
> VLC_CLIP, among others.
VLC_UNUSED works but it essentially NIH syndrome. It takes more space
than the standard solutions:
- (void) cast, or
- in C++-only, anonymous parameter.
VLC_CLIP and the underlying __MIN and __MAX are bad because they are
not expansion-safe. Furthermore __MIN and __MAX violate the namespace
rules.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list