Re: [AD] Darwin/MacOS X port

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


>
>IIRC someone on [AL] suggested to get rid of END_OF_MAIN() in 5.0 and
>instead you would have to do 
>
>   AL_MAIN(int argc, char *argv[])
>   {
>      int i;
>      allegro_init();
>      etc.
>   }           
OOn a side note
I would very much like to have a standard way to avoid the whole main replacement
on all platforms.

This would mean that you'd need a user-callable function which does all the work
the main replacement currently does. IRRC this only means passing argc/argv.
Ofcourse the truly obvious solution for 5.0 would be

allegro_init(argc, argv);

The reason I'd like  this is that it's currently rather awkward to use allegro
in combination with other libs that pull the same trick with replacing main
(for example when using allegro with gnu fortran or wxWindows).


-- 

Martijn Versteegh



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