Entry: PRIVATE_TO_JSVAL (Macro)
Summary: Casts a private data pointer to a JS integer value.
Syntax:
PRIVATE_TO_JSVAL(p)
Description:
PRIVATE_TO_JSVAL enables you to store a private data pointer, p, as a JS value. The private pointer must be word-aligned. Before passing a pointer to PRIVATE_TO_JSVAL, test it with INT_FITS_IN_JSVAL to be verify that the pointer can be cast to a legal JS integer value.
PRIVATE_TO_JSVAL casts a pointer to a JS integer value and sets the JSVAL_INT type tag on it.
See also:
|
|
|