mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
21 lines
547 B
C++
21 lines
547 B
C++
typedef int PRUint32;
|
|
typedef int PRInt32;
|
|
typedef PRUint32 nsresult;
|
|
|
|
typedef nsresult (*xpcomFunc)(PRInt32 * __attribute__((user("NS_outparam"))) a,
|
|
PRInt32 ** __attribute__((user("NS_outparam"))) b);
|
|
|
|
struct A {
|
|
virtual nsresult TestMethod(PRInt32 *a __attribute__((user("NS_outparam"))),
|
|
PRInt32 **b __attribute__((user("NS_outparam"))));
|
|
|
|
struct FuncTable {
|
|
xpcomFunc mFunc;
|
|
} *mTable;
|
|
};
|
|
|
|
nsresult A::TestMethod(PRInt32 *a, PRInt32 **b)
|
|
{
|
|
return mTable->mFunc(a, b);
|
|
}
|