Fixed compilation issue when instance counting is disabled
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Aug 2012 15:16:41 +0000 (15:16 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 21 Aug 2012 15:16:41 +0000 (15:16 +0000)
http://codereview.appspot.com/6462089/

git-svn-id: http://skia.googlecode.com/svn/trunk@5210 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/GrMemoryPoolTest.cpp

index 17ff69d..3f00f67 100644 (file)
@@ -233,7 +233,7 @@ static void test_memory_pool(skiatest::Reporter* reporter) {
                 REPORTER_ASSERT(reporter, rec.fInstance->checkValues(rec.fValue));
                 delete rec.fInstance;
             }
-#ifdef SK_DEBUG
+#ifdef SK_ENABLE_INST_COUNT
             REPORTER_ASSERT(reporter, !A::GetInstanceCount());
 #endif
         }