зеркало из https://github.com/mozilla/pjs.git
put #ifdef's around the interface stub implementation output so that generated files can still
be part of the build system.
This commit is contained in:
Родитель
dff466fffd
Коммит
d9f776b9c9
|
@ -523,6 +523,7 @@ stub_interface(TreeState *state)
|
|||
|
||||
/* Emit a InitJSClass static method. */
|
||||
fprintf(state->file,
|
||||
"#ifdef XPIDL_JS_STUBS\n"
|
||||
"\nJSObject *\n"
|
||||
"%s::InitJSClass(JSContext *cx)\n"
|
||||
"{\n"
|
||||
|
@ -579,7 +580,8 @@ stub_interface(TreeState *state)
|
|||
" }\n"
|
||||
" }\n"
|
||||
" return (JSObject *)JSVAL_TO_PRIVATE(v);\n"
|
||||
"}\n",
|
||||
"}\n"
|
||||
"#endif /* XPIDL_JS_STUBS */\n",
|
||||
className, className, className);
|
||||
}
|
||||
|
||||
|
|
|
@ -523,6 +523,7 @@ stub_interface(TreeState *state)
|
|||
|
||||
/* Emit a InitJSClass static method. */
|
||||
fprintf(state->file,
|
||||
"#ifdef XPIDL_JS_STUBS\n"
|
||||
"\nJSObject *\n"
|
||||
"%s::InitJSClass(JSContext *cx)\n"
|
||||
"{\n"
|
||||
|
@ -579,7 +580,8 @@ stub_interface(TreeState *state)
|
|||
" }\n"
|
||||
" }\n"
|
||||
" return (JSObject *)JSVAL_TO_PRIVATE(v);\n"
|
||||
"}\n",
|
||||
"}\n"
|
||||
"#endif /* XPIDL_JS_STUBS */\n",
|
||||
className, className, className);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче