Re: [AD] No need for END_OF_MAIN (Windows)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On 5/13/05, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> This patch removes the need to place END_OF_MAIN() macro at the end of
> main function by extending "#define main" macro to have all needed
> code.

Unfortunately, this will break code that has a struct member named main.
That may sound like an academic case, but it probably isn't.
It also suffers from the problem that int _mangled_main(); doesn't mean the
same thing in C++ as it does in C, although you can probably get around
that by replacing () with (int argc, char **argv).
How do others feel about this for the 4.3 branch?

sounds good! 


--
Karthik
http://guilt.bafsoft.net

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/