mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
[PSEH]
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:
parent
73a001976b
commit
724d66b9a8
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue