delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/12/18:32:33

Message-Id: <200001131049.EAA12999@lakdiva.slt.lk>
From: "Kalum Somaratna aka Grendel" <kalum AT newmail DOT net>
To: djgpp AT delorie DOT com
Date: Thu, 13 Jan 2000 04:49:26 +0600
MIME-Version: 1.0
Subject: Re: PREVIOUS ? CODE!!
In-reply-to: <95ap7sgq12tu6mam42h279p9t8a9phghoh@4ax.com>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 12 Jan 00, at 16:19, Damian Yerrick wrote:

> 
> In Allegro programs, END_OF_MAIN(); should always immediately
> follow the main() function so that X and Windows versions
> of the program can work properly.

The problem here is that END_OF_MAIN isn't defined in allegro.h.

I (and many others) use the standard Allegro 3.12 which doesn't 
have the END_OF_MAIN() defined in allegro.h and that's why the 
compiler was giving error messages. 

That is why I asked Brad to remove it or comment it out.

I don't know whether it is defined in the WIP version of Allegro but if 
this is the case,still the regular (3.12) is the one which most people 
have, so WIP version specific code using thing's like 
END_OF_MAIN will cause a lot of errors and frustration with the 
majority of users who use the normal distribution version. 

This IMHO is very bad coding practice.

Kalum

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019