Re: [AD] A5 END_OF_MAIN() exorcism progress

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


On 22 Jun 2009, at 5:00 , Peter Wang wrote:
1. Move the OS X main.m file from the main library into an addon. The
proper way to link Allegro on OS X then becomes "link to liballegro
and liba5-main".

Perhaps with pkg-config it could be automatic?

Maybe, although you want to be able to not have Allegro steal main() (in case you want to use it with something else that steals main()).

Having *either* allegro_main() or main() seems unnecessary,
but I will wait for the patch.

True, but it's a side effect of the way we steal main(): in A4 you *could* also call your entry function "_mangled_main()" - at least on platforms where a magic main is used.

Evert




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