Author: tkreuzer
Date: Sun Dec 23 21:33:48 2012
New Revision: 57982
URL:
http://svn.reactos.org/svn/reactos?rev=57982&view=rev
Log:
[PSEH]
Add _SEH2_VOLATILE macro, that expands to volatile on gcc. This is to mark variables as
volatile, if neccessary.
Modified:
trunk/reactos/include/reactos/libs/pseh/pseh2.h
trunk/reactos/include/reactos/libs/pseh/pseh3.h
Modified: trunk/reactos/include/reactos/libs/pseh/pseh2.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/pseh/…
==============================================================================
--- trunk/reactos/include/reactos/libs/pseh/pseh2.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/pseh/pseh2.h [iso-8859-1] Sun Dec 23 21:33:48 2012
@@ -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__)
Modified: trunk/reactos/include/reactos/libs/pseh/pseh3.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/pseh/…
==============================================================================
--- trunk/reactos/include/reactos/libs/pseh/pseh3.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/pseh/pseh3.h [iso-8859-1] Sun Dec 23 21:33:48 2012
@@ -290,3 +290,4 @@
#define _SEH3_LEAVE goto _SEH3$_l_AfterTry
+#define _SEH3_VOLATILE volatile