18 #ifndef INCLUDED_SCRIPTTYPES
19 #define INCLUDED_SCRIPTTYPES
24 # define WIN32 // SpiderMonkey expects this
30 # define JS_NO_JSVAL_JSID_STRUCT_TYPES
34 # define JS_SYS_TYPES_H_DEFINES_EXACT_SIZE_TYPES
36 #else // If not Windows, then Unix:
44 # if defined(DEBUG) && defined(WITH_SYSTEM_MOZJS185)
45 # define JS_NO_JSVAL_JSID_STRUCT_TYPES
54 #if defined(DEBUG) && !defined(WITH_SYSTEM_MOZJS185)
55 # define MOZJS_DEBUG_ABI 1
57 # define MOZJS_DEBUG_ABI 0
71 #if GCC_VERSION >= 402 // (older GCCs don't support this pragma)
72 # pragma GCC diagnostic ignored "-Wunused-parameter"
73 # pragma GCC diagnostic ignored "-Wredundant-decls"
76 # pragma warning(push)
77 # pragma warning(disable:4480) // "nonstandard extension used: specifying underlying type for enum"
78 # pragma warning(disable:4100) // "unreferenced formal parameter"
86 #if GCC_VERSION >= 402
87 # pragma GCC diagnostic warning "-Wunused-parameter"
88 # pragma GCC diagnostic warning "-Wredundant-decls"
92 #error Your compiler is trying to use an incorrect version of the SpiderMonkey library.
93 #error The only version that works is the one in the libraries/spidermonkey/ directory,
94 #error and it will not work with a typical system-installed version.
95 #error Make sure you have got all the right files and include paths.
102 #endif // INCLUDED_SCRIPTTYPES
A trivial wrapper around a jsval.
Abstraction around a SpiderMonkey JSContext.