1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 * Checking for jsrust crate availability for linking.
7 * For testing, define MOZ_PRETEND_NO_JSRUST to pretend
8 * that we don't have jsrust.
11 #ifndef mozilla_JsRust_h
12 #define mozilla_JsRust_h
14 #if (defined(MOZ_HAS_MOZGLUE) || defined(MOZILLA_INTERNAL_API)) && \
15 !defined(MOZ_PRETEND_NO_JSRUST)
16 # define MOZ_HAS_JSRUST() 1
18 # define MOZ_HAS_JSRUST() 0
21 #endif // mozilla_JsRust_h