Re: [AD] TRACE in examples

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


On Thu, 2009-08-20 at 00:10 +1000, Peter Wang wrote:
> > 
> > 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.
> 

What about a cmake option? Depending on what the option is set to, all
examples depend on the native dialogs addon and the example_error()
function in common.c will display a message in a window - or it simply
does a printf.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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