Re: [AD] No need for END_OF_MAIN (Windows) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Le Vendredi 13 Mai 2005 15:35, Evert Glebbeek a écrit :
> > 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?
Personnaly, I'm against it, because I'm using variables named "main" in my
code. Also, it'd be a shame to require the (int argc, char **argv) form for
main.
--
Julien Cugnière