Bug 530018 - Add comment to explain why typedef is neceessary. (no r)

This commit is contained in:
Jim Blandy
2009-11-27 17:05:21 -08:00
parent 2b56e682b5
commit 7c650cc64f

View File

@@ -424,6 +424,13 @@ js_DecompileFunctionBody(JSPrinter *jp);
extern JSBool
js_DecompileFunction(JSPrinter *jp);
/*
* Some C++ compilers treat the language linkage (extern "C" vs.
* extern "C++") as part of function (and thus pointer-to-function)
* types. The use of this typedef (defined in "C") ensures that
* js_DecompileToString's definition (in "C++") gets matched up with
* this declaration.
*/
typedef JSBool (* JSDecompilerPtr)(JSPrinter *);
extern JSString *