Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptTypes.h
Show First 20 Lines • Show All 65 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 != 38 | #if MOZJS_MAJOR_VERSION != 45 | ||||
#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 != 3 | #if MOZJS_MINOR_VERSION != 0 | ||||
#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