Re: [AD] END_OF_MAIN removal patch for msvc

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



On 17 Nov 2008, at 20:41, torhu wrote:
#define main _mangled_main(int, char**);  \
     int main(int argc, char** argv)       \
     {                                     \
         do_allegro_stuff(argc, argv);     \
         return _mangled_main(argc, argv); \
     }                                     \
     int _mangled_main

Syntax error aside, that'll do really nasty things to my struct
member "int main".


GCC seems to think that code is syntactically correct.

Doesn't it turn
int main(void)
into
int _mangled_main(int, char**)(void)
?

Evert




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