Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptTypes.h
/* Copyright (C) 2016 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 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 != 45 | #if MOZJS_MAJOR_VERSION != 52 | ||||
#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 \ | ||||
Stan: Would be nice to print it only once | |||||
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 != 0 | #if MOZJS_MINOR_VERSION != 9 | ||||
#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
Would be nice to print it only once