Changed the IntID error into a uiEvent-specific one.
This commit is contained in:
parent
14c80eefb8
commit
9b11ec4a6f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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()", \
|
||||
|
|
Loading…
Reference in New Issue