From 3d3e27d666c7c35ab95f450c68766a9ba996a485 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 17 Nov 2012 11:18:41 +0000 Subject: generate macros for adding object to root GC set --- src/jsapi-libdom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c index 476c99e..df36be8 100644 --- a/src/jsapi-libdom.c +++ b/src/jsapi-libdom.c @@ -361,7 +361,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\tfree(private);\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -395,7 +395,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -413,7 +413,7 @@ output_class_new(struct binding *binding) /* unroot object and return it */ fprintf(binding->outfile, - "\tJS_RemoveRoot(cx, &newobject);\n" + "\tJSAPI_REMOVE_OBJECT_ROOT(cx, &newobject);\n" "\n" "\treturn newobject;\n" "}\n"); -- cgit v1.2.3