diff options
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; |