OLD | NEW |
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 Loading... |
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 |
OLD | NEW |