Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptTypes.h
Show All 15 Lines | |||||
*/ | */ | ||||
#ifndef INCLUDED_SCRIPTTYPES | #ifndef INCLUDED_SCRIPTTYPES | ||||
#define INCLUDED_SCRIPTTYPES | #define INCLUDED_SCRIPTTYPES | ||||
#define JSGC_GENERATIONAL 1 | #define JSGC_GENERATIONAL 1 | ||||
#define JSGC_USE_EXACT_ROOTING 1 | #define JSGC_USE_EXACT_ROOTING 1 | ||||
#ifdef DEBUG | |||||
#define MOZ_DIAGNOSTIC_ASSERT_ENABLED | |||||
#endif | |||||
#ifdef _WIN32 | #ifdef _WIN32 | ||||
# define XP_WIN | # define XP_WIN | ||||
# ifndef WIN32 | # ifndef WIN32 | ||||
# define WIN32 // SpiderMonkey expects this | # define WIN32 // SpiderMonkey expects this | ||||
# endif | # endif | ||||
#endif | #endif | ||||
// Ignore some harmless warnings | // Ignore some harmless warnings | ||||
Show All 36 Lines | |||||
#endif | #endif | ||||
#if CLANG_VERSION | #if CLANG_VERSION | ||||
# pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
#endif | #endif | ||||
#if GCC_VERSION | #if GCC_VERSION | ||||
# pragma GCC diagnostic pop | # pragma GCC diagnostic pop | ||||
#endif | #endif | ||||
#if MOZJS_MAJOR_VERSION != 91 | #if MOZJS_MAJOR_VERSION != 102 | ||||
#error Your compiler is trying to use an incorrect major version of the \ | #error Your compiler is trying to use an incorrect major version of the \ | ||||
SpiderMonkey library. The only version that works is the one in the \ | SpiderMonkey library. The only version that works is the one in the \ | ||||
libraries/spidermonkey/ directory, and it will not work with a typical \ | libraries/spidermonkey/ directory, and it will not work with a typical \ | ||||
system-installed version. Make sure you have got all the right files and \ | system-installed version. Make sure you have got all the right files and \ | ||||
include paths. | include paths. | ||||
#endif | #endif | ||||
#if MOZJS_MINOR_VERSION != 13 | #if MOZJS_MINOR_VERSION != 12 | ||||
#error Your compiler is trying to use an untested minor version of the \ | #error Your compiler is trying to use an untested minor version of the \ | ||||
SpiderMonkey library. If you are a package maintainer, please make sure \ | SpiderMonkey library. If you are a package maintainer, please make sure \ | ||||
to check very carefully that this version does not change the behaviour \ | to check very carefully that this version does not change the behaviour \ | ||||
of the code executed by SpiderMonkey. Different parts of the game (e.g. \ | of the code executed by SpiderMonkey. Different parts of the game (e.g. \ | ||||
the multiplayer mode) rely on deterministic behaviour of the JavaScript \ | the multiplayer mode) rely on deterministic behaviour of the JavaScript \ | ||||
engine. A simple way for testing this would be playing a network game \ | engine. A simple way for testing this would be playing a network game \ | ||||
with one player using the old version and one player using the new \ | with one player using the old version and one player using the new \ | ||||
version. Another way for testing is running replays and comparing the \ | version. Another way for testing is running replays and comparing the \ | ||||
final hash (check trac.wildfiregames.com/wiki/Debugging#Replaymode). \ | final hash (check trac.wildfiregames.com/wiki/Debugging#Replaymode). \ | ||||
For more information check this link: trac.wildfiregames.com/wiki/Debugging#Outofsync | For more information check this link: trac.wildfiregames.com/wiki/Debugging#Outofsync | ||||
#endif | #endif | ||||
class ScriptInterface; | class ScriptInterface; | ||||
#endif // INCLUDED_SCRIPTTYPES | #endif // INCLUDED_SCRIPTTYPES |
Wildfire Games · Phabricator