Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
jsmath.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


JSObjectjs_InitMathClass (JSContext *cx, JSObject *obj)


JS_BEGIN_EXTERN_C JSClass js_MathClass

Function Documentation

JSObject* js_InitMathClass ( JSContext cx,
JSObject obj 

Definition at line 502 of file jsmath.c.

    JSObject *Math;

    Math = JS_DefineObject(cx, obj, js_Math_str, &js_MathClass, NULL, 0);
    if (!Math)
        return NULL;
    if (!JS_DefineFunctions(cx, Math, math_static_methods))
        return NULL;
    if (!JS_DefineConstDoubles(cx, Math, math_constants))
        return NULL;
    return Math;

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 95 of file jsmath.c.