diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-06 18:35:59 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-06 18:35:59 +0000 |
commit | e0dc7d40abd4480f70fe9e54b10208adf0bf84fa (patch) | |
tree | 7cfe15c09563d55445be690827392d18c2509c63 /javascript/jsapi.h | |
parent | 16c105972399ad8f55bdfeec84ace9633552173f (diff) | |
download | netsurf-e0dc7d40abd4480f70fe9e54b10208adf0bf84fa.tar.gz netsurf-e0dc7d40abd4480f70fe9e54b10208adf0bf84fa.tar.bz2 |
implement JSAPI_CLASS_NO_INTERNAL_MEMBERS correctly for differring versions of teh jsapi interface
Diffstat (limited to 'javascript/jsapi.h')
-rw-r--r-- | javascript/jsapi.h | 11 |
1 files changed, 10 insertions, 1 deletions
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)) |