[PATCH] include: Add COM_DECLSPEC_NOTHROW define
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- include/basetyps.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/basetyps.h b/include/basetyps.h index 94875334b0..6e4f9e6d16 100644 --- a/include/basetyps.h +++ b/include/basetyps.h @@ -39,6 +39,8 @@ #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE #define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE +#define COM_DECLSPEC_NOTHROW + #if defined(__cplusplus) && !defined(CINTERFACE) # define interface struct # define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m -- 2.17.1
Hi Alistair, On 17/10/2019 01:21, Alistair Leslie-Hughes wrote:
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- include/basetyps.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/basetyps.h b/include/basetyps.h index 94875334b0..6e4f9e6d16 100644 --- a/include/basetyps.h +++ b/include/basetyps.h @@ -39,6 +39,8 @@ #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE #define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
+#define COM_DECLSPEC_NOTHROW + #if defined(__cplusplus) && !defined(CINTERFACE) # define interface struct # define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m
It seems that Windows SDK defines it only for C++. Also, it's a meaningful attribute and GCC can support it, so it would be nice to actually support and use it where appropriate. Thanks, Jacek
participants (2)
-
Alistair Leslie-Hughes -
Jacek Caban