Re: [AD] TRACE in examples

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


On 2009-08-19, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> Since this is still not fixed...
> 
> A simple solution would be to use al_show_native_message_box whenever
> there is no other way to display a message to the user. It would make
> the native dialogs addon a requirement for running any examples - but I
> don't think that's a problem.
> 
> If it is, we could add A4's allegro_message function to the core
> instead.
> 
> A third option would be to include a small common.c from all examples,
> which implements a function to display a window with an error message
> and exit (al_create_display should be failsafe enough to be used for
> this).

I prefer this last option.  On Linux I would like messages just to go to
standard output/error, at least as an option (e.g. set an environment
variable).  allegro_message really annoyed me when testing examples for
a release.  I would run an example and it would pop up a message box to
tell me usage information, which I'd have to focus and click to close.

Peter




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