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 file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 
6 // This ensures the right configuration for e.g. MOZ_GLUE_IN_PROGRAM,
7 // used in the MFBT headers included further below. We use js-confdefs.h
8 // instead of mozilla-config.h because the latter is not present in
9 // spidermonkey standalone builds while the former is always present.
10 #include "js-confdefs.h"
11 #include "mozilla/Assertions.h"
12 #include "mozilla/Types.h"
13 
14 // MOZ_Crash wrapper for use by rust, since MOZ_Crash is an inline function.
RustMozCrash(const char * aFilename,int aLine,const char * aReason)15 extern "C" void RustMozCrash(const char* aFilename, int aLine,
16                              const char* aReason) {
17   MOZ_Crash(aFilename, aLine, aReason);
18 }
19