mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
86606cc627
a few misc optimizations.
32 lines
427 B
R
32 lines
427 B
R
#include "Boolean.h"
|
|
|
|
Boolean trueConstant;
|
|
Boolean falseConstant;
|
|
|
|
@implementation Boolean
|
|
|
|
+ (void) initialize
|
|
{
|
|
trueConstant = [Boolean new];
|
|
[trueConstant retain];
|
|
falseConstant = [Boolean new];
|
|
[falseConstant retain];
|
|
|
|
}
|
|
|
|
+ (id) trueConstant
|
|
{
|
|
return trueConstant;
|
|
}
|
|
|
|
+ (id) falseConstant
|
|
{
|
|
return falseConstant;
|
|
}
|
|
|
|
- (string) printForm
|
|
{
|
|
return self == trueConstant ? "#t" : "#f";
|
|
}
|
|
|
|
@end
|