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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceBrowserCompileServer.h ('k') | src/IceCompileServer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceBuildDefs.h
diff --git a/src/IceBuildDefs.h b/src/IceBuildDefs.h
index 6714297aa7dd62e47e8201615f61f3d5023dcb91..9269697c08b574eb4d3b4cc66f43d98d9cbe2683 100644
--- a/src/IceBuildDefs.h
+++ b/src/IceBuildDefs.h
@@ -35,6 +35,16 @@ constexpr bool asserts() {
#endif // !NDEBUG
}
+// PNACL_BROWSER_TRANSLATOR can be undefined, or defined to something non-zero
+// to indicate a browser-based translator.
+constexpr bool browser() {
+#if PNACL_BROWSER_TRANSLATOR
+ return true;
+#else // !PNACL_BROWSER_TRANSLATOR
+ return false;
+#endif // !PNACL_BROWSER_TRANSLATOR
+}
+
// ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
constexpr bool extraValidation() {
#if ALLOW_EXTRA_VALIDATION
« 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