mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-27 12:49:32 +03:00
add macros for default proprty actions
This commit is contained in:
parent
7b62bb5ff8
commit
5f66864c3a
@ -75,6 +75,8 @@
|
||||
|
||||
|
||||
/* native proprty definition */
|
||||
#define JSAPI_PROP_DEFAULT(name, cx, obj, vp) \
|
||||
jsapi_property_##name(cx, obj, jsval jsapi_id, vp)
|
||||
#define JSAPI_PROP_GETTER(name, cx, obj, vp) \
|
||||
jsapi_property_##name##_get(cx, obj, jsval jsapi_id, vp)
|
||||
#define JSAPI_PROP_SETTER(name, cx, obj, vp) \
|
||||
@ -195,6 +197,8 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx,
|
||||
|
||||
|
||||
/* proprty native calls */
|
||||
#define JSAPI_PROP_DEFAULT(name, cx, obj, vp) \
|
||||
jsapi_property_##name(cx, obj, jsval jsapi_id, vp)
|
||||
#define JSAPI_PROP_GETTER(name, cx, obj, vp) \
|
||||
jsapi_property_##name##_get(cx, obj, jsval jsapi_id, vp)
|
||||
#define JSAPI_PROP_SETTER(name, cx, obj, vp) \
|
||||
@ -307,6 +311,8 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx,
|
||||
#define JSAPI_THIS_OBJECT(cx,vp) JS_THIS_OBJECT(cx,vp)
|
||||
|
||||
/* proprty native calls */
|
||||
#define JSAPI_PROP_DEFAULT(name, cx, obj, vp) \
|
||||
jsapi_property_##name(cx, obj, jsid jsapi_id, vp)
|
||||
#define JSAPI_PROP_GETTER(name, cx, obj, vp) \
|
||||
jsapi_property_##name##_get(cx, obj, jsid jsapi_id, vp)
|
||||
#define JSAPI_PROP_SETTER(name, cx, obj, vp) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user