js-config.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2. * vim: set ts=8 sw=4 et tw=78:
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #ifndef js_config_h
  8. #define js_config_h
  9. /* Definitions set at build time that affect SpiderMonkey's public API.
  10. This header file is generated by the SpiderMonkey configure script,
  11. and installed along with jsapi.h. */
  12. /* Define to 1 if SpiderMonkey is in debug mode. */
  13. /* #undef JS_DEBUG */
  14. /*
  15. * NB: We have a special case for rust-bindgen, which wants to be able to
  16. * generate both debug and release bindings on a single objdir.
  17. */
  18. #ifdef JS_DEBUG
  19. #if !defined(DEBUG) && !defined(RUST_BINDGEN)
  20. # error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header"
  21. # endif
  22. #else
  23. # if defined(DEBUG) && !defined(RUST_BINDGEN)
  24. # error "SpiderMonkey was configured with --disable-debug, so DEBUG must be not defined when including this header"
  25. # endif
  26. #endif
  27. /* Define to 1 if SpiderMonkey should not use struct types in debug builds. */
  28. /* #undef JS_NO_JSVAL_JSID_STRUCT_TYPES */
  29. /* Define to 1 if SpiderMonkey should support multi-threaded clients. */
  30. /* #undef JS_THREADSAFE */
  31. /* Define to 1 if SpiderMonkey should include ctypes support. */
  32. /* #undef JS_HAS_CTYPES */
  33. /* Define to 1 if SpiderMonkey should support the ability to perform
  34. entirely too much GC. */
  35. /* #undef JS_GC_ZEAL */
  36. /* Define to 1 if SpiderMonkey should use small chunks. */
  37. /* #undef JS_GC_SMALL_CHUNK_SIZE */
  38. /* Define to 1 to perform extra assertions and heap poisoning. */
  39. /* #undef JS_CRASH_DIAGNOSTICS */
  40. /* Define to 1 if SpiderMonkey is in NUNBOX32 mode. */
  41. /* #undef JS_NUNBOX32 */
  42. /* Define to 1 if SpiderMonkey is in PUNBOX64 mode. */
  43. #define JS_PUNBOX64 1
  44. /* MOZILLA JSAPI version number components */
  45. #define MOZJS_MAJOR_VERSION 52
  46. #define MOZJS_MINOR_VERSION 0
  47. #endif /* js_config_h */