1#import <Foundation/Foundation.h>
2
3#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float) ((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float) ((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float) (rgbValue & 0xFF)) / 255.0 alpha:1.0]
4
5#if TARGET_OS_IPHONE
6#define GL_CONTEXT_ALLOC(parentContext) [[EAGLContext alloc] initWithAPI:GL_CONTEXT_VERSION(parentContext) sharegroup:[parentContext sharegroup]]
7#else
8#define GL_CONTEXT_ALLOC(parentContext) [[NSOpenGLContext alloc] initWithFormat:[[NSOpenGLPixelFormat alloc] initWithCGLPixelFormatObj:CGLGetPixelFormat([parentContext CGLContextObj])] shareContext:parentContext]
9#endif
10
11#define NSLocalizedString(key, comment) \
12    [TestClassBundle localizedStringForKey:(key) value:@"" table:nil]
13
14@interface TestClass : NSObject
15@end
16
17@implementation TestClass
18@end
19