author | koda |
Sun, 20 Jun 2010 18:35:59 +0200 | |
changeset 3523 | 6592fbb969da |
parent 3513 | f589230fa21b |
child 3663 | 8c28abf427f5 |
permissions | -rw-r--r-- |
3366 | 1 |
// |
2 |
// Prefix header for all source files of the 'OpenGL ES app' target in the 'OpenGL ES app' project |
|
3 |
// |
|
4 |
||
5 |
#ifdef __OBJC__ |
|
6 |
#import <Foundation/Foundation.h> |
|
7 |
#import <CoreGraphics/CoreGraphics.h> |
|
8 |
#import <UIKit/UIKit.h> |
|
9 |
#endif |
|
3487 | 10 |
|
11 |
// by http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/ |
|
12 |
#ifdef DEBUG |
|
13 |
#define DLog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__]) |
|
14 |
#define ALog(...) [[NSAssertionHandler currentHandler] handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__ encoding:NSUTF8StringEncoding] file:[NSString stringWithCString:__FILE__ encoding:NSUTF8StringEncoding] lineNumber:__LINE__ description:__VA_ARGS__] |
|
15 |
#else |
|
16 |
#define DLog(...) do { } while (0) |
|
17 |
#ifndef NS_BLOCK_ASSERTIONS |
|
18 |
#define NS_BLOCK_ASSERTIONS |
|
19 |
#endif |
|
20 |
#define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__]) |
|
21 |
#endif |
|
22 |
||
23 |
#define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0) |
|
3513
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
24 |
|
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
25 |
#if !__IPHONE_3_2 |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
26 |
typedef enum { |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
27 |
UIUserInterfaceIdiomPhone, // iPhone and iPod touch style UI |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
28 |
UIUserInterfaceIdiomPad, // iPad style UI |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
29 |
} UIUserInterfaceIdiom; |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
30 |
#define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
31 |
#define UIPopoverController id |
f589230fa21b
now it's possible to select the scheme file in the ifrontendfix a type about loading an image (iphone file system IS case senstive)
koda
parents:
3487
diff
changeset
|
32 |
#endif // ifndef __IPHONE_3_2 |