mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 08:57:58 +00:00
Re-org
This commit is contained in:
parent
02c877f916
commit
823ea3efd4
74 changed files with 773 additions and 15587 deletions
31
include/catch_objc_main.hpp
Normal file
31
include/catch_objc_main.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* catch_objc_main.hpp
|
||||
* Catch
|
||||
*
|
||||
* Created by Phil on 28/12/2010.
|
||||
* Copyright 2010 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)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TWOBLUECUBES_CATCH_OBJC_MAIN_HPP_INCLUDED
|
||||
#define TWOBLUECUBES_CATCH_OBJC_MAIN_HPP_INCLUDED
|
||||
|
||||
#include "catch_runner.hpp"
|
||||
#include "catch_objc.hpp"
|
||||
|
||||
int main (int argc, const char * argv[])
|
||||
{
|
||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
Catch::registerTestMethods();
|
||||
|
||||
int result = Catch::Main( argc, (char* const*)argv );
|
||||
|
||||
[pool drain];
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue