Re: [AD] END_OF_MAIN removal patch for msvc

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


On 17 Nov 2008, at 22:41, Peter Wang wrote:
I've done that with END_OF_MAIN(), too.  Granted, END_OF_MAIN() is
shorter so easier to remember.

Oh, so have I - but it's indeed fairly easy to fix. Turning END_OF_MAIN() to a no-op on some platforms in this sense makes it easier to write platform-specific code, unfortunately.

We can tweak it until you're happy ;-)

Cool, I'd loke it to look like one of the following:

int main(void)
{
...
}

or

int main(int, char **)
{
...
}

?
:P

The ucontext idea is fun, but I have a feeling it's too clever.

It does sound like the sort of thing that seems a good idea at one time and then turns out to be a spectacular hack and blow up in your face at some point in the future.
But I'd still like looking into it if it's the best we can do. ;)

Evert




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