[ros-dev] [ros-diffs] [hyperion] 41564: Don't want to fix all uses of PSEH2 macros, therefore have some curly braces, everyone
Timo Kreuzer
timo.kreuzer at web.de
Tue Jun 23 01:10:13 CEST 2009
Can you explain what's broken with the current usage? Maybe we can avoid
it in the future / fix current usage bit by bit?
hyperion at svn.reactos.org schrieb:
> Author: hyperion
> Date: Tue Jun 23 00:27:16 2009
> New Revision: 41564
>
> URL: http://svn.reactos.org/svn/reactos?rev=41564&view=rev
> Log:
> Don't want to fix all uses of PSEH2 macros, therefore have some curly braces, everyone
>
> Modified:
> trunk/reactos/include/reactos/libs/pseh/pseh2.h
>
> Modified: trunk/reactos/include/reactos/libs/pseh/pseh2.h
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/pseh/pseh2.h?rev=41564&r1=41563&r2=41564&view=diff
> ==============================================================================
> --- trunk/reactos/include/reactos/libs/pseh/pseh2.h [iso-8859-1] (original)
> +++ trunk/reactos/include/reactos/libs/pseh/pseh2.h [iso-8859-1] Tue Jun 23 00:27:16 2009
> @@ -401,10 +401,10 @@
>
> #include <excpt.h>
>
> -#define _SEH2_TRY __try
> -#define _SEH2_FINALLY __finally
> -#define _SEH2_EXCEPT(...) __except(__VA_ARGS__)
> -#define _SEH2_END
> +#define _SEH2_TRY __try {
> +#define _SEH2_FINALLY } __finally {
> +#define _SEH2_EXCEPT(...) } __except(__VA_ARGS__) {
> +#define _SEH2_END }
>
> #define _SEH2_GetExceptionInformation() (GetExceptionInformation())
> #define _SEH2_GetExceptionCode() (GetExceptionCode())
>
>
>
More information about the Ros-dev
mailing list