Functions


MOHandleAssertionFailure
Funnel function for MOAssertion macros. Good for breakpoints.

MOHandleAssertionFailure

Funnel function for MOAssertion macros. Good for breakpoints.
MOKIT_EXTERN void MOHandleAssertionFailure(
    BOOL raise,
    SEL selector,
    id object,
    const char *functionName,
    const char *fileName,
    unsigned line,
    NSString *format,
    ...);

This is the funnel point for assertion failures. You never call it directly, but it can be useful for setting breakpoints. The implementation uses +[MOAssertionHandler currentHandler] to get the current assertion handler and sends it either -handleFailureInMethod:object:file:lineNumber:description:arguments: if selector is non-NULL or -handleFailureInFunction:file:lineNumber:description:arguments: if selector is NULL.

Parameter Descriptions
raise
If this is YES then the call represents a real assertion. Otherwise it represent a request for simply logging an error message.
selector
If the assertion came from a method, this is the selector of the method (_cmd). If it came from a function this will be NULL.
object
If the assertion came from a method, this is the receiver of the method (self). If it came from a function this will be nil.
functionName
This is the value of the compiler macro __PRETTY_FUNCTION__ in the scope the assertion came from.
fileName
This is the value of the compiler macro __FILE__ in the scope the assertion came from.
line
This is the value of the compiler macro __LINE__ in the scope the assertion came from.
format
An +[NSString stringWithFormat:]-style format string. The remaining arguments are the replacement arguments for any % directives in the format string.

(Last Updated 3/20/2005)