Generated JS from IDL now calls backdoor routine all the time from js getters/setters

This commit is contained in:
joki 1998-07-14 20:19:28 +00:00
Родитель d1d33900f8
Коммит 7e53afbc9e
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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"