Merges objc top level headers into main headers (using #ifdef __OBJC__)

This commit is contained in:
Phil Nash 2011-04-26 19:00:25 +01:00
parent 38edb9fa95
commit 95419e935c
8 changed files with 28 additions and 38 deletions

View file

@ -17,7 +17,22 @@
int main (int argc, char * const argv[])
{
#ifdef __OBJC__
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
Catch::registerTestMethods();
int result = Catch::Main( argc, (char* const*)argv );
[pool drain];
return result;
#else
return Catch::Main( argc, argv );
#endif
}
#endif // TWOBLUECUBES_CATCH_WITH_MAIN_HPP_INCLUDED