Go to the source code of this file.
#define JSU_ASSERT |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value:
if(!(expr))\
{\
JS_ReportError(cx, msg);\
return JS_FALSE;\
}\
)
#define STMT(STMT_code__)
package code into a single statement.
Definition at line 57 of file JSUtil.h.
#define JSU_REQUIRE_MAX_PARAMS |
( |
|
max_number | ) |
|
Value:if(argc > max_number)\
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 38 of file JSUtil.h.
#define JSU_REQUIRE_MIN_PARAMS |
( |
|
min_number | ) |
|
Value:if(argc < min_number)\
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 42 of file JSUtil.h.
#define JSU_REQUIRE_NO_PARAMS |
( |
| ) |
|
Value:if(argc != 0)\
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 30 of file JSUtil.h.
#define JSU_REQUIRE_PARAM_RANGE |
( |
|
min_number, |
|
|
|
max_number |
|
) |
| |
Value:if(!(min_number <= argc && argc <= max_number))\
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 34 of file JSUtil.h.
#define JSU_REQUIRE_PARAMS |
( |
|
exact_number | ) |
|
Value:if(argc != exact_number)\
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 26 of file JSUtil.h.
#define JSU_REQUIRE_PARAMS_CPP |
( |
|
exact_number | ) |
|
Value:if(argc != exact_number)\
return false;\
}
JSBool jsu_report_param_error(JSContext *cx, jsval *vp)
Definition at line 49 of file JSUtil.h.
JSBool jsu_report_param_error |
( |
JSContext * |
cx, |
|
|
jsval * |
vp |
|
) |
| |