Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2ef00173
Commit
2ef00173
authored
Oct 18, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add COM_DECLSPEC_NOTHROW define.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aaaaec86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
basetyps.h
include/basetyps.h
+9
-2
objbase.h
include/objbase.h
+10
-4
winnt.h
include/winnt.h
+10
-0
No files found.
include/basetyps.h
View file @
2ef00173
...
...
@@ -40,9 +40,16 @@
#define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
#if defined(__cplusplus) && !defined(CINTERFACE)
#ifdef COM_STDMETHOD_CAN_THROW
# define COM_DECLSPEC_NOTHROW
#else
# define COM_DECLSPEC_NOTHROW DECLSPEC_NOTHROW
#endif
# define interface struct
# define STDMETHOD(m)
virtual
HRESULT STDMETHODCALLTYPE m
# define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m
# define STDMETHOD(m)
virtual COM_DECLSPEC_NOTHROW
HRESULT STDMETHODCALLTYPE m
# define STDMETHOD_(t,m) virtual
COM_DECLSPEC_NOTHROW
t STDMETHODCALLTYPE m
# define PURE =0
# define THIS_
# define THIS void
...
...
include/objbase.h
View file @
2ef00173
...
...
@@ -172,12 +172,18 @@
#if defined(__cplusplus) && !defined(CINTERFACE)
#ifdef COM_STDMETHOD_CAN_THROW
# define COM_DECLSPEC_NOTHROW
#else
# define COM_DECLSPEC_NOTHROW DECLSPEC_NOTHROW
#endif
/* C++ interface */
#define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
#define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
#define STDMETHODV(method) virtual HRESULT STDMETHODVCALLTYPE method
#define STDMETHODV_(type,method) virtual type STDMETHODVCALLTYPE method
#define STDMETHOD(method) virtual
COM_DECLSPEC_NOTHROW
HRESULT STDMETHODCALLTYPE method
#define STDMETHOD_(type,method) virtual
COM_DECLSPEC_NOTHROW
type STDMETHODCALLTYPE method
#define STDMETHODV(method) virtual
COM_DECLSPEC_NOTHROW
HRESULT STDMETHODVCALLTYPE method
#define STDMETHODV_(type,method) virtual
COM_DECLSPEC_NOTHROW
type STDMETHODVCALLTYPE method
#define PURE = 0
#define THIS_
...
...
include/winnt.h
View file @
2ef00173
...
...
@@ -76,6 +76,16 @@ extern "C" {
# endif
#endif
#ifndef DECLSPEC_NOTHROW
# if defined(_MSC_VER) && (_MSC_VER >= 1200) && !defined(MIDL_PASS)
# define DECLSPEC_NOTHROW __declspec(nothrow)
# elif defined(__GNUC__)
# define DECLSPEC_NOTHROW __attribute__((nothrow))
# else
# define DECLSPEC_NOTHROW
# endif
#endif
#ifndef DECLSPEC_CACHEALIGN
# define DECLSPEC_CACHEALIGN DECLSPEC_ALIGN(128)
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment