зеркало из https://github.com/mozilla/pjs.git
Added NS_IMPL_AGGREGATED_QUERY_HEAD macro.
This commit is contained in:
Родитель
60f00a0390
Коммит
4f8a16eb71
|
@ -123,4 +123,14 @@ _class::Internal::Release(void) \
|
|||
return agg->mRefCnt; \
|
||||
} \
|
||||
|
||||
// for use with QI macros in nsISupportsUtils.h:
|
||||
|
||||
#define NS_IMPL_AGGREGATED_QUERY_HEAD(_class) \
|
||||
NS_IMETHODIMP _class::AggregatedQueryInterface(REFNSIID aIID, void** aInstancePtr) \
|
||||
{ \
|
||||
NS_ASSERTION(aInstancePtr, "AggregatedQueryInterface requires a non-NULL destination!"); \
|
||||
if ( !aInstancePtr ) \
|
||||
return NS_ERROR_NULL_POINTER; \
|
||||
nsISupports* foundInterface;
|
||||
|
||||
#endif /* nsAgg_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче