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

Side by Side Diff: src/IceBuildDefs.h

Issue 1494753003: cleanup main (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: else clause no longer needed Created 5 years 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 | « src/IceBrowserCompileServer.h ('k') | src/IceCompileServer.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 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===// 1 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 17 matching lines...) Expand all
28 28
29 // NDEBUG can be undefined, or defined to something arbitrary. 29 // NDEBUG can be undefined, or defined to something arbitrary.
30 constexpr bool asserts() { 30 constexpr bool asserts() {
31 #ifdef NDEBUG 31 #ifdef NDEBUG
32 return false; 32 return false;
33 #else // !NDEBUG 33 #else // !NDEBUG
34 return true; 34 return true;
35 #endif // !NDEBUG 35 #endif // !NDEBUG
36 } 36 }
37 37
38 // PNACL_BROWSER_TRANSLATOR can be undefined, or defined to something non-zero
39 // to indicate a browser-based translator.
40 constexpr bool browser() {
41 #if PNACL_BROWSER_TRANSLATOR
42 return true;
43 #else // !PNACL_BROWSER_TRANSLATOR
44 return false;
45 #endif // !PNACL_BROWSER_TRANSLATOR
46 }
47
38 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero. 48 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
39 constexpr bool extraValidation() { 49 constexpr bool extraValidation() {
40 #if ALLOW_EXTRA_VALIDATION 50 #if ALLOW_EXTRA_VALIDATION
41 return true; 51 return true;
42 #else // !ALLOW_EXTRA_VALIDATION 52 #else // !ALLOW_EXTRA_VALIDATION
43 return false; 53 return false;
44 #endif // !ALLOW_EXTRA_VALIDATION 54 #endif // !ALLOW_EXTRA_VALIDATION
45 } 55 }
46 56
47 } // end of namespace BuildDefs 57 } // end of namespace BuildDefs
48 } // end of namespace Ice 58 } // end of namespace Ice
49 59
50 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 60 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW
« no previous file with comments | « src/IceBrowserCompileServer.h ('k') | src/IceCompileServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698