| Re: [AD] Magic main in Windows | 
[ Thread Index | 
Date Index
| More lists.liballeg.org/allegro-developers Archives
] 
On Sunday 01 August 2004 22:06, Evert Glebbeek wrote:
> Looks like SDL just pulls a #defines SDL_main main in it's main include 
> file and calls that.
Yes. In Windows, SDL defines
#define SDL_main main
and then calls SDL_main from its own WinMain.
It can get away with this by requiring that main be declared as
int main(int argc, int *argv[])
Any other declaration of main fails.
Not something we want to do for Allegro IMO. 
Evert