equal
deleted
inserted
replaced
41 |
41 |
42 int main (int argc, char *argv[]) { |
42 int main (int argc, char *argv[]) { |
43 #ifdef VALGRIND_REXEC |
43 #ifdef VALGRIND_REXEC |
44 // Using the valgrind build config, rexec ourself in valgrind |
44 // Using the valgrind build config, rexec ourself in valgrind |
45 // from http://landonf.bikemonkey.org/code/iphone/iPhone_Simulator_Valgrind.20081224.html |
45 // from http://landonf.bikemonkey.org/code/iphone/iPhone_Simulator_Valgrind.20081224.html |
46 if (argc < 2 || (argc >= 2 && strcmp(argv[1], "-valgrind") != 0)) { |
46 if (argc < 2 || (argc >= 2 && strcmp(argv[1], "-valgrind") != 0)) |
47 execl(VALGRIND, VALGRIND, "--leak-check=full", "--show-reachable=yes", argv[0], "-valgrind", NULL); |
47 execl(VALGRIND, VALGRIND, "--leak-check=full", argv[0], "-valgrind", NULL); |
48 } |
|
49 #endif |
48 #endif |
50 |
49 |
51 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
50 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
52 int retVal = UIApplicationMain(argc, argv, nil, @"SDLUIKitDelegate"); |
51 int retVal = UIApplicationMain(argc, argv, nil, @"SDLUIKitDelegate"); |
53 [pool release]; |
52 [pool release]; |