Bug 373175: hiding code to set arena names behind JS_ARENAMETER. r=brendan

This commit is contained in:
2007-04-10 06:29:10 -07:00
parent 8eee8ef975
commit 3bc4193542
9 changed files with 55 additions and 32 deletions

View File

@@ -255,8 +255,17 @@ js_QuoteString(JSContext *cx, JSString *str, jschar quote);
* value from js_GetPrinterOutput() is the printer's cumulative output, in
* a GC'ed string.
*/
#ifdef JS_ARENAMETER
# define JS_NEW_PRINTER(cx, name, indent, pretty) \
js_NewPrinter(cx, name, indent, pretty)
#else
# define JS_NEW_PRINTER(cx, name, indent, pretty) \
js_NewPrinter(cx, indent, pretty)
#endif
extern JSPrinter *
js_NewPrinter(JSContext *cx, const char *name, uintN indent, JSBool pretty);
JS_NEW_PRINTER(JSContext *cx, const char *name, uintN indent, JSBool pretty);
extern void
js_DestroyPrinter(JSPrinter *jp);