diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-09-07 12:38:10 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:58 +0000 |
commit | 670a04941260717d9759a85b8d20585bc976e56e (patch) | |
tree | 8424f2a6b90fbb0dd9fdf9bfe4c5d00a66c42ae3 /UICaboodle | |
parent | 6c96d5a3b5540f2470be62bac68ea1e791eaf1fa (diff) |
Major modifications to ready for stability.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 10 | ||||
-rw-r--r-- | UICaboodle/UCPlatform.h | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 5622dfc..6143711 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -10,7 +10,7 @@ extern NSString * const kCAFilterNearest; #include "substrate.h" -#define ForSaurik 1 +#define ForSaurik 0 static CFArrayRef (*$GSSystemCopyCapability)(CFStringRef); static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); @@ -145,7 +145,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); @end #define ShowInternals 0 -#define LogBrowser 1 +#define LogBrowser 0 #define lprintf(args...) fprintf(stderr, args) @@ -769,8 +769,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [sender cancelAuthenticationChallenge:challenge_]; break; - default: - _assert(false); + _nodefault } [challenge_ release]; @@ -790,8 +789,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); } break; - default: - _assert(false); + _nodefault } [sheet dismiss]; diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 9e95703..2506a5d 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -46,3 +46,11 @@ while (false) __attribute__((packed)) #define _finline inline __attribute__((always_inline)) + +#define _assume(e) \ + _assert(e) + +#define _nodefault \ + default: \ + _assume(false); \ + throw; |