Issue #58 - Follow-up: Remove Rust binding leftovers

This commit is contained in:
FranklinDM 2024-03-26 01:26:36 +08:00 committed by roytam1
commit 6d154eee11
6 changed files with 2 additions and 166 deletions

View file

@ -14,16 +14,12 @@
/* Define to 1 if SpiderMonkey is in debug mode. */
#undef JS_DEBUG
/*
* NB: We have a special case for rust-bindgen, which wants to be able to
* generate both debug and release bindings on a single objdir.
*/
#ifdef JS_DEBUG
#if !defined(DEBUG) && !defined(RUST_BINDGEN)
# ifndef DEBUG
# error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header"
# endif
#else
# if defined(DEBUG) && !defined(RUST_BINDGEN)
# ifdef DEBUG
# error "SpiderMonkey was configured with --disable-debug, so DEBUG must be not defined when including this header"
# endif
#endif