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

Side by Side Diff: include/core/SkPostConfig.h

Issue 2204683005: Enable SK_DEBUG/SK_RELEASE to be defined in the user config. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Enable SK_DEBUG/SK_RELEASE to be defined in the user config. Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | include/core/SkPreConfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 // IWYU pragma: private, include "SkTypes.h" 8 // IWYU pragma: private, include "SkTypes.h"
9 9
10 #ifndef SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
11 #define SkPostConfig_DEFINED 11 #define SkPostConfig_DEFINED
12 12
13 #if defined(SK_BUILD_FOR_WIN32) 13 #if defined(SK_BUILD_FOR_WIN32)
14 # define SK_BUILD_FOR_WIN 14 # define SK_BUILD_FOR_WIN
15 #endif 15 #endif
16 16
17 #if !defined(SK_DEBUG) && !defined(SK_RELEASE)
18 #ifdef NDEBUG
19 #define SK_RELEASE
20 #else
21 #define SK_DEBUG
22 #endif
23 #endif
24
17 #if defined(SK_DEBUG) && defined(SK_RELEASE) 25 #if defined(SK_DEBUG) && defined(SK_RELEASE)
18 # error "cannot define both SK_DEBUG and SK_RELEASE" 26 # error "cannot define both SK_DEBUG and SK_RELEASE"
19 #elif !defined(SK_DEBUG) && !defined(SK_RELEASE) 27 #elif !defined(SK_DEBUG) && !defined(SK_RELEASE)
20 # error "must define either SK_DEBUG or SK_RELEASE" 28 # error "must define either SK_DEBUG or SK_RELEASE"
21 #endif 29 #endif
22 30
23 #if defined(SK_SUPPORT_UNITTEST) && !defined(SK_DEBUG) 31 #if defined(SK_SUPPORT_UNITTEST) && !defined(SK_DEBUG)
24 # error "can't have unittests without debug" 32 # error "can't have unittests without debug"
25 #endif 33 #endif
26 34
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 346
339 #ifndef SK_HISTOGRAM_BOOLEAN 347 #ifndef SK_HISTOGRAM_BOOLEAN
340 # define SK_HISTOGRAM_BOOLEAN(name, value) 348 # define SK_HISTOGRAM_BOOLEAN(name, value)
341 #endif 349 #endif
342 350
343 #ifndef SK_HISTOGRAM_ENUMERATION 351 #ifndef SK_HISTOGRAM_ENUMERATION
344 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) 352 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value)
345 #endif 353 #endif
346 354
347 #endif // SkPostConfig_DEFINED 355 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698