Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2880)

Unified Diff: experimental/Intersection/Intersections.h

Issue 481513004: Define NDEBUG instead of SK_DEBUG/SK_RELEASE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/Intersection/DataTypes.cpp ('k') | experimental/Intersection/QuadraticImplicit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/Intersection/Intersections.h
diff --git a/experimental/Intersection/Intersections.h b/experimental/Intersection/Intersections.h
index fc4c26c6e7b7dca9aef5a7a88dcb094a0760adba..a4135af6436178eb8e17111c19cff9a71cd63334 100644
--- a/experimental/Intersection/Intersections.h
+++ b/experimental/Intersection/Intersections.h
@@ -11,12 +11,12 @@ class Intersections {
public:
Intersections()
: fFlip(0)
-#if SK_DEBUG
+#ifdef SK_DEBUG
, fDepth(0)
#endif
, fSwap(0)
{
-#if SK_DEBUG
+#ifdef SK_DEBUG
bzero(fPt, sizeof(fPt));
bzero(fT, sizeof(fT));
bzero(fIsCoincident, sizeof(fIsCoincident));
@@ -35,7 +35,7 @@ public:
if (fIsCoincident[0] & (1 << index)) {
++count;
}
- #if SK_DEBUG
+ #ifdef SK_DEBUG
if (fIsCoincident[1] & (1 << index)) {
++count2;
}
@@ -119,7 +119,7 @@ public:
SkASSERT(++fDepth < 16);
}
-#if SK_DEBUG
+#ifdef SK_DEBUG
int depth() const {
return fDepth;
}
@@ -131,7 +131,7 @@ public:
unsigned char fUsed;
bool fFlip;
bool fUnsortable;
-#if SK_DEBUG
+#ifdef SK_DEBUG
int fDepth;
#endif
protected:
« no previous file with comments | « experimental/Intersection/DataTypes.cpp ('k') | experimental/Intersection/QuadraticImplicit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698