[Scummvm-devel] ScummVM binary size comparison
David Given
dg at cowlark.com
Thu Nov 13 18:08:33 CET 2008
Max Horn wrote:
[...]
> Welll, I already implemented the "inline" version, at least GCC seems
> to honor it just fine (at least when building with -Os or any other
> non-zero optimization level). I would also expect MSVC to do so. As
> Johannes said, if we encounter a compiler which has troubles with
> this, we can still change it to the macro approach :)
Don't forget the new C/C++ vararg macro support; that'll provide a
syntax-compatible alternate implementation.
It also has the advantage that if faced with a really ancient compiler
that does neither empty inlines nor vararg macros, it should be
relatively straightforward to bolt on a third-party preprocessor and
make them work that way.
--
David Given
dg at cowlark.com
More information about the Scummvm-devel
mailing list