Bug 1523562 [wpt PR 14417] - Update RTCPeerConnection-helper.js, a=testonly
[gecko.git] / mozglue / build / WindowsCFGStatus.h
blob62154576c807eb9ab2743c0c1ff19d2305c699a0
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_windowscfgstatus_h
7 #define mozilla_windowscfgstatus_h
9 #if defined(_MSC_VER) && \
10 (defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM64))
12 # include <windows.h>
13 # include "mozilla/Attributes.h"
14 # include "mozilla/Types.h"
16 extern "C" {
18 /**
19 * Tests for Microsoft's Control Flow Guard compiler security feature.
20 * This function will crash if CFG is enabled.
22 * There is a dependency on the calling convention in
23 * toolkit/xre/test/browser_checkcfgstatus.js so be sure to update that
24 * if it changes.
26 * @returns false if CFG is not enabled. Crashes if CFG is enabled.
27 * It will never return true.
29 MFBT_API bool CFG_DisabledOrCrash();
32 #endif // defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
33 #endif // mozilla_windowscfgstatus_h