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:
alecf%netscape.com 1999-02-27 03:34:39 +00:00
Родитель dff466fffd
Коммит d9f776b9c9
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -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);
}