Changed the IntID error into a uiEvent-specific one.

This commit is contained in:
Pietro Gagliardi 2019-06-09 10:30:47 -04:00
parent 14c80eefb8
commit 9b11ec4a6f
2 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@ static struct handler *findHandler(const uiEvent *e, int id, const char *func)
key.id = id;
ret = (struct handler *) uiprivArrayBsearch(&(e->handlers), &key, handlerCmp);
if (ret == NULL)
uiprivProgrammerErrorIntIDNotFound("uiEvent handler", id, func);
uiprivProgrammerErrorEventHandlerNotFound(id, func);
return ret;
}

View File

@ -26,9 +26,9 @@
// events {
#define uiprivProgrammerErrorIntIDNotFound(idDesc, badID, func) \
uiprivProgrammerError("%s identifier %d not found in %s()", \
idDesc, badID, func)
#define uiprivProgrammerErrorEventHandlerNotFound(badID, func) \
uiprivProgrammerError("event handler %d not found in %s()", \
badID, func)
#define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \
uiprivProgrammerError("attempt to use a %s sender with a %s event in %s()", \