/* --- DO NOT EDIT THIS FILE !!! --- This file has been generated automatically with 'jsapigen'. jsapigen is a glue-code generator for SpiderMonkey. It is distributed under the conditions of version 3 of the GNU General Public License. Please have a look at http://jsapigen.sourceforge.net. This file is NOT part of jsapigen and is NOT necessarily covered by jsapigen's license. For licensing information regarding this file, please refer to the software package which it is part of. */ #include #include #include #ifndef JS_THREADSAFE #if JS_VERSION <= 170 #define jsrefcount int #define JS_BeginRequest(cx) #define JS_EndRequest(cx) #define JS_SuspendRequest(cx) #define JS_ResumeRequest(cx, saveDepth) #endif #endif #ifndef JS_FS #define JS_FS(name, call, nargs, flags, extra) {name, call, nargs, flags, extra} #endif #ifndef JS_FS_END #define JS_FS_END {NULL, NULL, 0, 0, 0} #endif static JSBool jjjs_function(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { JSObject *var2; int var7; void *var4; int var6; int var8; jsval var9; int32 var10; JSBool var1; var2 = NULL; var7 = 0; var4 = NULL; var6 = 0; var8 = 0; var9 = JSVAL_NULL; var10 = 0; var1 = JS_FALSE; var2 = obj; var4 = JS_GetPrivate(cx, var2); var6 = argc; var8 = 0; var8 = var8 < var6; if (var8) { var9 = argv[0]; if (JS_ValueToInt32(cx, var9, &var10) != JS_TRUE) { goto do_return; } var7 = (int)var10; } else { var7 = 2; } c_function(var4, var7); var1 = JS_TRUE; do_return: return var1; } static JSPropertySpec jj_static_ps[] = { {NULL, 0, 0, NULL, NULL} }; static JSPropertySpec jj_ps[] = { {NULL, 0, 0, NULL, NULL} }; static JSFunctionSpec jj_static_fs[] = { JS_FS_END }; static JSFunctionSpec jj_fs[] = { JS_FS("js_function", jjjs_function, 1, 0, 0), JS_FS_END };