Bug 1826905 [wpt PR 39420] - view-transition: Add WPTs for damage tracking when new...
[gecko.git] / mfbt / JsRust.h
blobff622e33d4e427d6b5e570bddc75e433e0a926f8
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/. */
5 /*
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.
9 */
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
17 #else
18 # define MOZ_HAS_JSRUST() 0
19 #endif
21 #endif // mozilla_JsRust_h