ARC support for Object-C projects

This commit is contained in:
Phil Nash 2012-03-17 18:20:06 +00:00
parent 8d18d1648a
commit 53c990a7e1
9 changed files with 168 additions and 57 deletions

View file

@ -17,13 +17,17 @@ int main (int argc, char * const argv[])
{
#ifdef __OBJC__
#if !CATCH_ARC_ENABLED
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
#endif
Catch::registerTestMethods();
int result = Catch::Main( argc, (char* const*)argv );
#if !CATCH_ARC_ENABLED
[pool drain];
#endif
#else