AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Macros in the JS API define:
·     Fixed, named values that can be substituted in source code to improve readability and maintenance.
·     Calculated, named values that may differ in value depending on the architecture and operating system of the host machine where a script runs.
·     Pseudo functions, such as JSVAL_IS_OBJECT, that offer a shorthand way to perform logical tests, or sometimes to perform complex calculations that are frequently used by the JavaScript engine.
The following section lists macros defined in the JS API, and notes restrictions on their uses where applicable. For example, some macro values are used only within certain data structures.

NOTE: Many macros, structure definitions, and functions, take or return values of type jsval. While the definition of jsval is not part of the API proper, you should know that it is a bit-shifted integer value that is used throughout the JS engine. Given a C integer value, a corresponding jsval is bit-shifted left to accommodate a three-bit tag field that the JS engine uses to identify the type of value represented by the value in JavaScript. A jsval may represent any known JS data type.

Contents:
BOOLEAN_TO_JSVAL
DOUBLE_TO_JSVAL
INT_FITS_IN_JSVAL
INT_TO_JSVAL
JSCLASS_HAS_PRIVATE
JSCLASS_NEW_ENUMERATE
JSCLASS_NEW_RESOLVE
JSFUN_BOUND_METHOD
JSFUN_GLOBAL_PARENT
JSPRINCIPALS_DROP
JSPRINCIPALS_HOLD
JSPROP_ENUMERATE
JSPROP_EXPORTED
JSPROP_INDEX
JSPROP_PERMANENT
JSPROP_READONLY
JSRESOLVE_ASSIGNING
JSRESOLVE_QUALIFIED
JSVAL_FALSE
JSVAL_IS_BOOLEAN
JSVAL_IS_DOUBLE
JSVAL_IS_GCTHING
JSVAL_IS_INT
JSVAL_IS_NULL
JSVAL_IS_NUMBER
JSVAL_IS_OBJECT
JSVAL_IS_PRIMITIVE
JSVAL_IS_STRING
JSVAL_IS_VOID
JSVAL_LOCK
JSVAL_NULL
JSVAL_ONE
JSVAL_TO_BOOLEAN
JSVAL_TO_DOUBLE
JSVAL_TO_GCTHING
JSVAL_TO_INT
JSVAL_TO_OBJECT
JSVAL_TO_PRIVATE
JSVAL_TO_STRING
JSVAL_TRUE
JSVAL_UNLOCK
JSVAL_VOID
JSVAL_ZERO
JS_DestroyRuntime
JS_GetTypeName
JS_NewRuntime
OBJECT_TO_JSVAL
PRIVATE_TO_JSVAL
STRING_TO_JSVAL

[sh-index] Back to list of manuals