Re: [AD] A5 END_OF_MAIN() exorcism progress |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] A5 END_OF_MAIN() exorcism progress
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Mon, 22 Jun 2009 07:23:08 -0400
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