зеркало из https://github.com/mozilla/gecko-dev.git
b1d66c8b2e
I've wanted to use this recently for a couple things. This uses the same scheme and even templates we use for attributes, so it's mostly moving code around... Inverting the code generation so that the implementation is infallible, and we actually generate the NS_IMETHOD goop inline somehow could be potentially desirable, though that causes an extra virtual call for non-C++ callers I guess, so maybe it's not such a great trade-off. Plus it seems more complicated... Explicitly forbid mixing infallible with notxpcom (as it doesn't make sense), and similarly forbid infallible + returning void (as C++ doesn't allow us to overload a function that differs only on its return type). Differential Revision: https://phabricator.services.mozilla.com/D90044 |
||
---|---|---|
.. | ||
xpidl | ||
setup.py |