ReactOS  0.4.15-dev-5112-g22d8c0f
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 
12  LONG Counter;
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 endtry
Definition: seh.h:24
long LONG
Definition: pedump.c:60
#define printf
Definition: freeldr.h:94
#define except(x)
Definition: btrfs_drv.h:136
static LARGE_INTEGER Counter
Definition: clock.c:43

Variable Documentation

◆ test

char test[] = "SEH0002.c"

Definition at line 8 of file seh0002.c.