summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-04-20 06:22:06 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:13 +0000
commitab92ad73d09c0d78903ab068991190e6c0998aba (patch)
tree75be782f3fe46bf1effe02391ac11f0119c818a2
parentdf213583d7ac5db52a5d46ed445a574071b38c71 (diff)
Better separation of concerns.
-rw-r--r--Cydia.mm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 2f299b6..cf27f1e 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -397,6 +397,8 @@ extern NSString * const kCAFilterNearest;
#define lprintf(args...) fprintf(stderr, args)
#define ForRelease 0
+#define TraceLogging (1 && !ForRelease)
+#define ProfileTimes (0 && !ForRelease)
#define ForSaurik (0 && !ForRelease)
#define LogBrowser (0 && !ForRelease)
#define TrackResize (0 && !ForRelease)
@@ -406,9 +408,12 @@ extern NSString * const kCAFilterNearest;
#define RecycleWebViews 0
#define AlwaysReload (1 && !ForRelease)
-#if ForRelease
+#if !TraceLogging
#undef _trace
#define _trace(args...)
+#endif
+
+#if !ProfileTimes
#undef _profile
#define _profile(name) {
#undef _end
@@ -562,7 +567,7 @@ CFIndex CFBSearch_(const void *element, CFIndex elementSize, const void *list, C
return (ptr - (const char *)list) / elementSize;
}
-#define HistogramInsertionSort 1
+#define HistogramInsertionSort 0
void CFArrayInsertionSortValues(CFMutableArrayRef array, CFRange range, CFComparatorFunction comparator, void *context) {
if (range.length == 0)