mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Issue #2678 - Define a new macro for CC isupports.
The main purpose of defining this is to make conversion of places that use the non-CC variant easier.
This commit is contained in:
parent
33a120eb9f
commit
5d82de9eb6
1 changed files with 14 additions and 0 deletions
|
|
@ -910,6 +910,20 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME;
|
||||||
|
|
||||||
#define NS_CYCLE_COLLECTION_NOTE_EDGE_NAME CycleCollectionNoteEdgeName
|
#define NS_CYCLE_COLLECTION_NOTE_EDGE_NAME CycleCollectionNoteEdgeName
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience macros for defining nISupports methods in a cycle collected class.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define NS_IMPL_QUERY_INTERFACE_CYCLE_COLLECTION_INHERITED(aClass, aSuper, ...) \
|
||||||
|
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(aClass) \
|
||||||
|
NS_INTERFACE_TABLE_INHERITED(aClass, __VA_ARGS__) \
|
||||||
|
NS_INTERFACE_TABLE_TAIL_INHERITING(aSuper)
|
||||||
|
|
||||||
|
#define NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED(aClass, aSuper, ...) \
|
||||||
|
NS_IMPL_QUERY_INTERFACE_CYCLE_COLLECTION_INHERITED(aClass, aSuper, __VA_ARGS__) \
|
||||||
|
NS_IMPL_ADDREF_INHERITED(aClass, aSuper) \
|
||||||
|
NS_IMPL_RELEASE_INHERITED(aClass, aSuper)
|
||||||
|
|
||||||
// *** Fast IID comparison helper functions ***
|
// *** Fast IID comparison helper functions ***
|
||||||
/**
|
/**
|
||||||
* Equivalency of the high three words where two IIDs have the same
|
* Equivalency of the high three words where two IIDs have the same
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue