JSBool JS_ValueToDouble()
Description
This function extracts a function argument from a
possible), and passes the converted value back to the caller.
Arguments
JSContext *cx
•
The
argument is the opaque
cx
•
The
argument is the
v
•
The
argument is a pointer to an 8-byte double. This function stores the converted value
dp
in
.
*dp
Returns
A Boolean value:
JSBool JS_ValueToBoolean()
Description
This function extracts a function argument from a
(if possible), and passes the converted value back to the caller.
Arguments
JSContext *cx
•
The
argument is the opaque
cx
•
The
argument is the
v
•
The
argument is a pointer to a
bp
value in
.
*bp
Returns
A Boolean value:
JSBool JS_ValueToObject()
Description
This function extracts a function argument from a
possible), and passes the converted value back to the caller. If the object is an array, use
JS_GetArrayLength()
Arguments
JSContext *cx
•
The
argument is the opaque
cx
•
The
argument is the
v
•
The
argument is a pointer to a
op
in
.
*op
358
Chapter 21: C-Level Extensibility
,
,
jsval v
double *dp
JSContext
structure from which the double is to be extracted.
jsval
indicates success;
JS_TRUE
,
,
jsval v
JSBool *bp
JSContext
structure from which the Boolean value is to be extracted.
jsval
JSBool
indicates success;
JS_TRUE
and
JS_GetElement()
,
,
jsval v
JSObject **op
JSContext
structure from which the object is to be extracted.
jsval
JSObject
structure, converts it to a double (if
jsval
pointer that passed to the JavaScript function.
indicates failure.
JS_FALSE
structure, converts it to a Boolean value
jsval
pointer that passes to the JavaScript function.
Boolean value. This function stores the converted
indicates failure.
JS_FALSE
structure, converts it to an object (if
jsval
to read its contents.
pointer that passes to the JavaScript function.
pointer. This function stores the converted value
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?