2025-08-04 08:27:45 -07:00
|
|
|
/* Copyright (C) 2025 Wildfire Games.
|
2023-12-02 16:30:12 -08:00
|
|
|
* This file is part of 0 A.D.
|
2010-01-09 11:20:14 -08:00
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is free software: you can redistribute it and/or modify
|
2010-01-09 11:20:14 -08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is distributed in the hope that it will be useful,
|
2010-01-09 11:20:14 -08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2023-12-02 16:30:12 -08:00
|
|
|
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
2010-01-09 11:20:14 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SCRIPTTYPES
|
|
|
|
|
#define INCLUDED_SCRIPTTYPES
|
|
|
|
|
|
2024-10-25 01:24:14 -07:00
|
|
|
#ifdef DEBUG
|
|
|
|
|
#define MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-01-09 11:20:14 -08:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
# define XP_WIN
|
2011-07-15 06:22:48 -07:00
|
|
|
# ifndef WIN32
|
|
|
|
|
# define WIN32 // SpiderMonkey expects this
|
|
|
|
|
# endif
|
2010-01-09 11:20:14 -08:00
|
|
|
#endif
|
2011-11-14 10:18:04 -08:00
|
|
|
|
2014-03-28 13:26:32 -07:00
|
|
|
#include "jspubtd.h"
|
|
|
|
|
#include "jsapi.h"
|
|
|
|
|
|
2025-08-04 08:27:45 -07:00
|
|
|
#if MOZJS_MAJOR_VERSION != 128
|
2015-01-27 01:14:30 -08:00
|
|
|
#error Your compiler is trying to use an incorrect major version of the \
|
2024-11-17 06:01:04 -08:00
|
|
|
SpiderMonkey library. The SpiderMonkey API is subject to changes, and the \
|
|
|
|
|
game will not build with the selected version of the library. Make sure \
|
|
|
|
|
you have got all the right files and include paths.
|
2014-03-28 13:26:32 -07:00
|
|
|
#endif
|
|
|
|
|
|
2010-01-09 11:20:14 -08:00
|
|
|
class ScriptInterface;
|
|
|
|
|
|
|
|
|
|
#endif // INCLUDED_SCRIPTTYPES
|