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

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: changes suggested by stichnot 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
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
Jim Stichnoth 2015/12/07 17:37:13 Expand this comment like above and below. E.g.:
rkotlerimgtec 2015/12/07 18:32:07 Done.
39 constexpr bool browser() {
40 #if PNACL_BROWSER_TRANSLATOR
41 return true;
42 #else // !PNACL_BROWSER_TRANSLATOR
43 return false;
44 #endif // !PNACL_BROWSER_TRANSLATOR
45 }
46
38 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero. 47 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
39 constexpr bool extraValidation() { 48 constexpr bool extraValidation() {
40 #if ALLOW_EXTRA_VALIDATION 49 #if ALLOW_EXTRA_VALIDATION
41 return true; 50 return true;
42 #else // !ALLOW_EXTRA_VALIDATION 51 #else // !ALLOW_EXTRA_VALIDATION
43 return false; 52 return false;
44 #endif // !ALLOW_EXTRA_VALIDATION 53 #endif // !ALLOW_EXTRA_VALIDATION
45 } 54 }
46 55
47 } // end of namespace BuildDefs 56 } // end of namespace BuildDefs
48 } // end of namespace Ice 57 } // end of namespace Ice
49 58
50 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 59 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698