From 753b870c62bd22cee3d9a15efc634822724084ac Mon Sep 17 00:00:00 2001 From: mtklein Date: Wed, 20 Aug 2014 07:38:46 -0700 Subject: Define NDEBUG instead of SK_DEBUG/SK_RELEASE. This makes our builds more like Chrome's, and will make our builds fail if we accidentally use if SK_DEBUG instead of ifdef SK_DEBUG. BUG=skia: R=mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/481513004 --- experimental/Intersection/DataTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'experimental/Intersection/DataTypes.cpp') diff --git a/experimental/Intersection/DataTypes.cpp b/experimental/Intersection/DataTypes.cpp index a4a3039cd5..3425ea9576 100644 --- a/experimental/Intersection/DataTypes.cpp +++ b/experimental/Intersection/DataTypes.cpp @@ -38,7 +38,7 @@ union Float_t #endif int32_t i; float f; -#if SK_DEBUG +#ifdef SK_DEBUG struct { // Bitfields for exploration. Do not use in production code. uint32_t mantissa : 23; @@ -76,7 +76,7 @@ int UlpsDiff(float A, float B) } #endif -#if SK_DEBUG +#ifdef SK_DEBUG void mathematica_ize(char* str, size_t bufferLen) { size_t len = strlen(str); bool num = false; -- cgit v1.2.3