js-config.h.in 1.8 KB

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