From e0dc7d40abd4480f70fe9e54b10208adf0bf84fa Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 6 Nov 2012 18:35:59 +0000 Subject: implement JSAPI_CLASS_NO_INTERNAL_MEMBERS correctly for differring versions of teh jsapi interface --- javascript/jsapi.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/javascript/jsapi.h b/javascript/jsapi.h index 051432996..d664b3795 100644 --- a/javascript/jsapi.h +++ b/javascript/jsapi.h @@ -97,7 +97,14 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx, /* string type cast */ #define JSAPI_STRING_TO_JSVAL(str) ((str == NULL)?JSVAL_NULL:STRING_TO_JSVAL(str)) -#else /* #if JS_VERSION <= 180 */ +#define JSAPI_CLASS_NO_INTERNAL_MEMBERS JSCLASS_NO_RESERVED_MEMBERS + + + + +#else /*************** #if JS_VERSION <= 180 *****************/ + + /* three parameter jsapi native call */ @@ -157,6 +164,8 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx, /* string type cast */ #define JSAPI_STRING_TO_JSVAL(str) ((str == NULL)?JSVAL_NULL:STRING_TO_JSVAL(str)) +#define JSAPI_CLASS_NO_INTERNAL_MEMBERS JSCLASS_NO_INTERNAL_MEMBERS + #endif #define JSLOG(args...) LOG((args)) -- cgit v1.2.3