Add _SEH2_VOLATILE macro, that expands to volatile on gcc. This is to mark variables as volatile, if neccessary.

svn path=/trunk/; revision=57982
This commit is contained in:
Timo Kreuzer 2012-12-23 21:33:48 +00:00
parent 73a001976b
commit 724d66b9a8
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,7 @@
#define _SEH2_AbnormalTermination() (AbnormalTermination())
#define _SEH2_YIELD(STMT_) STMT_
#define _SEH2_LEAVE __leave
#define _SEH2_VOLATILE
#elif defined(_USE_DUMMY_PSEH) || defined (__arm__) || defined(__clang__) || defined(_M_AMD64)
@ -47,6 +48,7 @@
#define _SEH2_AbnormalTermination()
#define _SEH2_YIELD(STMT_) STMT_
#define _SEH2_LEAVE
#define _SEH2_VOLATILE volatile
#elif defined(_USE_PSEH3)
@ -62,6 +64,7 @@
#define _SEH2_AbnormalTermination _abnormal_termination
#define _SEH2_LEAVE _SEH3_LEAVE
#define _SEH2_YIELD(x) x
#define _SEH2_VOLATILE volatile
#elif defined(__GNUC__)

View file

@ -290,3 +290,4 @@ void * __cdecl __attribute__((error("Can only be used inside an exception filter
#define _SEH3_LEAVE goto _SEH3$_l_AfterTry
#define _SEH3_VOLATILE volatile