Did the same rewording to most of the other programmer errors. Only the first two are left, because I can't think of a good rewording...
This commit is contained in:
parent
87a2195027
commit
a2b9145931
|
@ -11,47 +11,47 @@
|
||||||
func)
|
func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorWrongStructSize(badSize, structName, func) \
|
#define uiprivProgrammerErrorWrongStructSize(badSize, structName, func) \
|
||||||
uiprivProgrammerError("wrong size %" uiprivSizetPrintf " for %s in %s()", \
|
uiprivProgrammerError("%s(): wrong size %" uiprivSizetPrintf " for %s", \
|
||||||
badSize, structName, func)
|
func, badSize, structName)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorIndexOutOfRange(badIndex, func) \
|
#define uiprivProgrammerErrorIndexOutOfRange(badIndex, func) \
|
||||||
uiprivProgrammerError("index %d out of range in %s()", \
|
uiprivProgrammerError("%s(): index %d out of range", \
|
||||||
badIndex, func)
|
func, badIndex)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorNullPointer(paramDesc, func) \
|
#define uiprivProgrammerErrorNullPointer(paramDesc, func) \
|
||||||
uiprivProgrammerError("invalid null pointer for %s passed into %s()", \
|
uiprivProgrammerError("%s(): invalid null pointer for %s", \
|
||||||
paramDesc, func)
|
func, paramDesc)
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// events {
|
// events {
|
||||||
|
|
||||||
#define uiprivProgrammerErrorEventHandlerNotFound(badID, func) \
|
#define uiprivProgrammerErrorEventHandlerNotFound(badID, func) \
|
||||||
uiprivProgrammerError("event handler %d not found in %s()", \
|
uiprivProgrammerError("%s(): event handler %d not found", \
|
||||||
badID, func)
|
func, badID)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \
|
#define uiprivProgrammerErrorBadSenderForEvent(senderDesc, eventDesc, func) \
|
||||||
uiprivProgrammerError("attempt to use a %s sender with a %s event in %s()", \
|
uiprivProgrammerError("%s(): can't use a %s sender with a %s event", \
|
||||||
senderDesc, eventDesc, func)
|
func, senderDesc, eventDesc)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorChangingEventDuringFire(func) \
|
#define uiprivProgrammerErrorChangingEventDuringFire(func) \
|
||||||
uiprivProgrammerError("attempt to change a uiEvent with %s() while it is firing", \
|
uiprivProgrammerError("%s(): can't change a uiEvent while it is firing", \
|
||||||
func)
|
func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorRecursiveEventFire(func) \
|
#define uiprivProgrammerErrorRecursiveEventFire(func) \
|
||||||
uiprivProgrammerError("attempt to fire a uiEvent while it is already being fired in %s()", \
|
uiprivProgrammerError("%s(): can't recursively fire a uiEvent", \
|
||||||
func)
|
func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorFreeingInternalEvent(func) \
|
#define uiprivProgrammerErrorFreeingInternalEvent(func) \
|
||||||
uiprivProgrammerError("attempt to free a libui-provided uiEvent", \
|
uiprivProgrammerError("%s(): can't free a libui-provided event", \
|
||||||
func)
|
func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorFreeingEventInUse(func) \
|
#define uiprivProgrammerErrorFreeingEventInUse(func) \
|
||||||
uiprivProgrammerError("attempt to free a uiEvent that still has handlers registered", \
|
uiprivProgrammerError("%s(): can't free event that still has handlers registered", \
|
||||||
func)
|
func)
|
||||||
|
|
||||||
#define uiprivProgrammerErrorInvalidatingGlobalEvent(func) \
|
#define uiprivProgrammerErrorInvalidatingGlobalEvent(func) \
|
||||||
uiprivProgrammerError("attempt to call uiEventInvalidateSender() on a global uiEvent", \
|
uiprivProgrammerError("%s(): can't invalidate a global event", \
|
||||||
func)
|
func)
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue