mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-27 15:09:33 +00:00
Merges objc top level headers into main headers (using #ifdef __OBJC__)
This commit is contained in:
parent
38edb9fa95
commit
95419e935c
8 changed files with 28 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue