Moved boilerplate main for obj bindings into header

This commit is contained in:
Phil Nash committed 2010-12-28 22:43:32 +00:00
1 parent 9a79ee7958
commit 04ecced419
3 files changed
+91 -17

No files matched your search

+1 -17
View File
@@ -1,17 +1 @@
#import <Foundation/Foundation.h>
#import "../../../catch_runner.hpp"
#import "CatchOCTestCase.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
Catch::registerTestMethods();
// insert code here...
int result = Catch::Main( argc, (char* const*)argv );
[pool drain];
return result;
}
#import "../../../catch_objc_main.hpp"