[AD] new_api_branch error handling

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


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.


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