Re: [AD] new_api_branch error handling

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


On 2005-10-29, Hrvoje Ban <spoofer255@xxxxxxxxxx> wrote:
> Here it is. Now is simply matter of fact to make all functions call
> al_error before returning because of failure.

Firstly, the patch is buggy:
1. AL_ERROR_SIZE should be ALLEGRO_ERROR_SIZE
2. register_error_handler should set error_handler not assert_handler

Secondly, allowing the user to throw an exception in a low level Allegro
function may bypass some cleanup code in parent functions.  I don't know
if I want to be writing code such that calls to error_handler are
delayed until all cleanup has been done, just in case someone wants to
throw an exception.

Peter





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