AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_GetTypeName (Macro)
Summary:     Function. Returns a pointer to the string literal description of a specified JS data type.
Syntax:
const char * JS_GetTypeName(JSContext *cx, JSType type);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     type     JSType     The JS value to examine. type is one of JSTYPE_VOIDJSTYPE_OBJECTJSTYPE_FUNCTIONJSTYPE_STRINGJSTYPE_NUMBER, or JSTYPE_BOOLEAN.
                 
Description:
JS_GetTypeName returns a pointer to a string literal description of a specified JS data type, type. The following table lists JSTypes and the string literals reported by JS_GetTypeNameTABLE BORDER="0" TRTD VALIGN='baseline' ALIGN='left' BType /B/TDTD VALIGN='baseline' ALIGN='left' BLiteral /B /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_VOID/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"undefined"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_OBJECT/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"object"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_FUNCTION/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"function"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_STRING/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"string"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_NUMBER/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"number"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSTYPE_BOOLEAN/CODE/TDTD VALIGN='baseline' ALIGN='left'P CODE"boolean"/CODE/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P Any other value/TDTD VALIGN='baseline' ALIGN='left'P CODENULL/CODE/P /TD/TR/TABLE  


See also:
JS_ConvertValue
JS_TypeOfValue
JS_ValueToBoolean
JS_ValueToFunction
JS_ValueToInt32
JS_ValueToNumber
JS_ValueToObject
JS_ValueToString

[sh-index] Back to list of manuals