Re: [AD] END_OF_MAIN removal patch for msvc |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 2008-12-27 at 13:21 +0100, Elias Pschernig wrote:
>
> Since I think it will be one of the main improvements over A4, I'm
> trying to get the ball rolling again on this. The attached patch would
> be a first step. It simply replaces the END_OF_MAIN() macro by a direct
> call to an "allegro_main" function which must be supplied by the user.
>
> The Windows and OSX sides of the patch likely do not work as I could not
> test them, but maybe someone who can will apply it and try fixing them.
>
> If this works and the patch can be applied, the next step would be
> modifying the build to have the real main in a separate library (so
> language wrappers are not hampered by the "main" function in the base
> library).
>
> Finally, as was suggested in this thread, we could then likely
> re-introduce something similar to:
>
> #ifdef MAGIC_MAIN_WANTED
> #define main allegro_main
> #endif
>
> But I think we should not.
>
So, did anyone try applying the patch?
--
Elias Pschernig <elias@xxxxxxxxxx>