52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
break;
case 2:
pspDebugScreenSetTextColor(0x0000FF);
break;
}
pspDebugScreenSetXY(0, y);
pspDebugScreenPrintData([str cString], [str cStringLength]);
#elif defined(STDOUT)
switch (color) {
case 0:
[of_stdout writeString: @"\r\033[K\033[1;33m"];
break;
case 1:
[of_stdout writeString: @"\r\033[K\033[1;32m"];
|
|
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
break;
case 2:
pspDebugScreenSetTextColor(0x0000FF);
break;
}
pspDebugScreenSetXY(0, y);
pspDebugScreenPrintData([str UTF8String], [str UTF8StringLength]);
#elif defined(STDOUT)
switch (color) {
case 0:
[of_stdout writeString: @"\r\033[K\033[1;33m"];
break;
case 1:
[of_stdout writeString: @"\r\033[K\033[1;32m"];
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
#endif
}
- (void)outputTesting: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%s] %s: testing...",
[module cString],
[test cString]]
withColor: 0];
[pool release];
}
- (void)outputSuccess: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%s] %s: ok\n",
[module cString],
[test cString]]
withColor: 1];
[pool release];
}
- (void)outputFailure: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%s] %s: failed\n",
[module cString],
[test cString]]
withColor: 2];
[pool release];
}
- (void)applicationDidFinishLaunching
{
#ifdef _PSP
|
|
|
<
|
|
<
|
|
<
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#endif
}
- (void)outputTesting: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%@] %@: testing...",
module, test]
withColor: 0];
[pool release];
}
- (void)outputSuccess: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%@] %@: ok\n",
module, test]
withColor: 1];
[pool release];
}
- (void)outputFailure: (OFString*)test
inModule: (OFString*)module
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
[self outputString: [OFString stringWithFormat: @"[%@] %@: failed\n",
module, test]
withColor: 2];
[pool release];
}
- (void)applicationDidFinishLaunching
{
#ifdef _PSP
|