mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 498134 - ABI depends on #define DEBUG. r=Waldo.
--HG-- extra : rebase_source : 7add900da11663e2f98c1f8e0ef70387301ad115
This commit is contained in:
parent
3589d003cb
commit
9a443d248c
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user