| /* | |
| * Created by Phil on 20/05/2011. | |
| * Copyright 2011 Two Blue Cubes Ltd. All rights reserved. | |
| * | |
| * Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| */ | |
| // Standard C/C++ Win32 Unicode wmain entry point | |
| extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) { | |
| // Standard C/C++ main entry point | |
| int main (int argc, char * argv[]) { | |
| return Catch::Session().run( argc, argv ); | |
| } | |
| // Objective-C entry point | |
| int main (int argc, char * const argv[]) { | |
| NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
| Catch::registerTestMethods(); | |
| int result = Catch::Session().run( argc, (char**)argv ); | |
| [pool drain]; | |
| return result; | |
| } | |