Mozilla.com

Table of contents
  1. 1. Syntax
  2. 2. Description
Table of contents
  1. 1. Syntax
  2. 2. Description

Describes a double value and assigns it a name.

Syntax

struct JSConstDoubleSpec {
    jsdouble dval;
    const char *name;
    uint8 flags;
    uint8 spare[3];
};
Name Type Description
dval jsdouble Value for the double.
name const char * Name to assign the double.
flags uint8 Property attributes for the double. Currently these can be 0 or more of the following values OR'd:

If this field is 0, JS_DefineConstDoubles uses the default attributes JSPROP_READONLY | JSPROP_PERMANENT instead.

spare uint8[3] Reserved for future use.

Description

JSConstDoubleSpecs is used to define a set of double values that are assigned as properties to an object using JS_DefineConstDoubles.

LXR ID Search for JSConstDoubleSpec

Page last modified 20:08, 5 Sep 2008 by Jorend

Files (0)