[PATCH] include: Add COM_DECLSPEC_NOTHROW define

Jacek Caban jacek at codeweavers.com
Thu Oct 17 05:35:49 CDT 2019


Hi Alistair,


On 17/10/2019 01:21, Alistair Leslie-Hughes wrote:
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at 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




More information about the wine-devel mailing list