Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.708 kB
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KWWorkarounds.h"
#if KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG
static NSException *KWExceptionAcrossInvokeBoundary = nil;
void KWSetExceptionFromAcrossInvocationBoundary(NSException *anException) {
if (KWExceptionAcrossInvokeBoundary != nil)
return;
KWExceptionAcrossInvokeBoundary = [anException retain];
}
NSException *KWGetAndClearExceptionFromAcrossInvocationBoundary(void) {
NSException *exception = [KWExceptionAcrossInvokeBoundary autorelease];
KWExceptionAcrossInvokeBoundary = nil;
return exception;
}
#endif // #if KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG
Jump to Line
Something went wrong with that request. Please try again.