mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-03 02:17:54 +00:00
ARC support for Object-C projects
This commit is contained in:
parent
8d18d1648a
commit
53c990a7e1
9 changed files with 168 additions and 57 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue