ReactOS 0.4.15-dev-7931-gfd331f1
seh0002.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0002.c:

Go to the source code of this file.

Functions

int main ()
 

Variables

char test [] = "SEH0002.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 10 of file seh0002.c.

10 {
11
13
14 Counter = 0;
15
16 try {
17 Counter += 1;
18 }
20 /*
21 * counter should be positive indicating "EXECUTE HANDLER"
22 * but should never get here as no exception is raised
23 */
24 {
25 Counter += 1;
26 }
27 endtry
28
29 if (Counter != 1) {
30 printf("TEST 2 FAILED. Counter = %d\n\r", Counter);
31 return -1;
32 }
33
34 return 0;
35}
#define except(x)
Definition: btrfs_drv.h:136
#define printf
Definition: freeldr.h:97
long LONG
Definition: pedump.c:60
#define endtry
Definition: seh.h:24
static LARGE_INTEGER Counter
Definition: clock.c:43

Variable Documentation

◆ test

char test[] = "SEH0002.c"

Definition at line 8 of file seh0002.c.