catch2/projects/runners/iTchRunner/itChRunnerMain.mm

27 lines
533 B
Plaintext
Raw Normal View History

2011-02-08 19:48:34 +01:00
//
// iTchRunnerMain.mm
// iTchRunner
//
// Created by Phil on 04/02/2011.
// Copyright Two Blue Cubes Ltd 2011. All rights reserved.
//
#include "catch.hpp"
2011-02-08 19:48:34 +01:00
#import "internal/iTchRunnerAppDelegate.h"
int main(int argc, char *argv[])
2011-03-29 09:29:01 +02:00
{
2012-03-17 19:36:00 +01:00
#if !CATCH_ARC_ENABLED
2011-02-08 19:48:34 +01:00
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
2012-03-17 19:36:00 +01:00
#endif
2011-03-29 09:29:01 +02:00
Catch::registerTestMethods();
2011-02-08 19:48:34 +01:00
int retVal = UIApplicationMain(argc, argv, nil, @"iTchRunnerAppDelegate");
2012-03-17 19:36:00 +01:00
#if !CATCH_ARC_ENABLED
2011-02-08 19:48:34 +01:00
[pool release];
2012-03-17 19:36:00 +01:00
#endif
2011-02-08 19:48:34 +01:00
return retVal;
}