Bug 498134 - ABI depends on #define DEBUG. r=Waldo.

--HG--
extra : rebase_source : 7add900da11663e2f98c1f8e0ef70387301ad115
This commit is contained in:
Jason Orendorff 2009-10-29 06:39:18 -05:00
parent 3589d003cb
commit 9a443d248c
2 changed files with 3 additions and 5 deletions

View File

@ -1117,11 +1117,9 @@ JS_MarkGCThing(JSContext *cx, void *thing, const char *name, void *arg);
struct JSTracer {
JSContext *context;
JSTraceCallback callback;
#ifdef DEBUG
JSTraceNamePrinter debugPrinter;
const void *debugPrintArg;
size_t debugPrintIndex;
#endif
};
/*
@ -1225,7 +1223,9 @@ JS_CallTracer(JSTracer *trc, void *thing, uint32 kind);
JS_BEGIN_MACRO \
(trc)->context = (cx_); \
(trc)->callback = (callback_); \
JS_SET_TRACING_DETAILS(trc, NULL, NULL, (size_t)-1); \
(trc)->debugPrinter = NULL; \
(trc)->debugPrintArg = NULL; \
(trc)->debugPrintIndex = (size_t)-1; \
JS_END_MACRO
extern JS_PUBLIC_API(void)

View File

@ -393,10 +393,8 @@ typedef void
* DEBUG only callback that JSTraceOp implementation can provide to return
* a string describing the reference traced with JS_CallTracer.
*/
#ifdef DEBUG
typedef void
(* JSTraceNamePrinter)(JSTracer *trc, char *buf, size_t bufsize);
#endif
/*
* The optional JSClass.reserveSlots hook allows a class to make computed