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;
|
key.id = id;
|
||||||
ret = (struct handler *) uiprivArrayBsearch(&(e->handlers), &key, handlerCmp);
|
ret = (struct handler *) uiprivArrayBsearch(&(e->handlers), &key, handlerCmp);
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
uiprivProgrammerErrorIntIDNotFound("uiEvent handler", id, func);
|
uiprivProgrammerErrorEventHandlerNotFound(id, func);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
|
|
||||||
// events {
|
// events {
|
||||||
|
|
||||||
#define uiprivProgrammerErrorIntIDNotFound(idDesc, badID, func) \
|
#define uiprivProgrammerErrorEventHandlerNotFound(badID, func) \
|
||||||
uiprivProgrammerError("%s identifier %d not found in %s()", \
|
uiprivProgrammerError("event handler %d not found in %s()", \
|
||||||
idDesc, badID, func)
|
badID, func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \
|
#define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \
|
||||||
uiprivProgrammerError("attempt to use a %s sender with a %s event in %s()", \
|
uiprivProgrammerError("attempt to use a %s sender with a %s event in %s()", \
|
||||||
|
|
Loading…
Reference in New Issue