зеркало из https://github.com/mozilla/pjs.git
Generated JS from IDL now calls backdoor routine all the time from js getters/setters
This commit is contained in:
Родитель
d1d33900f8
Коммит
7e53afbc9e
|
@ -244,6 +244,15 @@ static const char *kPropFuncEndStr =
|
|||
" }\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
" else {\n"
|
||||
" nsIJSScriptObject *object;\n"
|
||||
" if (NS_OK == a->QueryInterface(kIJSScriptObjectIID, (void**)&object)) {\n"
|
||||
" PRBool rval;\n"
|
||||
" rval = object->%sProperty(cx, id, vp);\n"
|
||||
" NS_RELEASE(object);\n"
|
||||
" return rval;\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" return PR_TRUE;\n"
|
||||
"}\n";
|
||||
|
@ -252,7 +261,7 @@ static const char *kPropFuncEndStr =
|
|||
sprintf(buffer, kPropFuncBeginStr, className, op, op, className, className, className)
|
||||
|
||||
#define JSGEN_GENERATE_PROPFUNCEND(buffer, op) \
|
||||
sprintf(buffer, kPropFuncEndStr, op)
|
||||
sprintf(buffer, kPropFuncEndStr, op, op)
|
||||
|
||||
static const char *kPropCaseBeginStr =
|
||||
" case %s_%s:\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче