Re: [AD] new_api_branch error handling |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 2005-10-23 at 12:40 +0200, Hrvoje Ban wrote:
> void set_error_handler(void (* al_error_handler)(const char *error));
>
> It would be called every time functions fails, just before returning
> NULL. By default it would just copy error string into allegro_error,
> but user can supply his own version that could for example throw
> exception.
Sounds like a good idea to me. Maybe put it somewhere on the wiki, I
guess that would be the best place for proposals like this (or else,
simply submit a patch :) )
--
Elias Pschernig