1 typedef int (*JSNative) (void *cx, void *obj, unsigned int argc, long *argv,
3 int math_round(void *cx, void *obj, unsigned int argc, long *argv, long *rval)
6 return js_NewNumberValue(cx, copysign(floor(x + 0.5), x), rval);
8 int math_toSource(void *cx, void *obj, unsigned int argc, long *argv,
12 void *math__methods[];
13 void *js_InitMathClass(void *cx, void *obj)
16 if (!JS_DefineFunctions(cx, Math, math__methods))