ReactOS 0.4.16-dev-306-g647d351
seh0019.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0019.c:

Go to the source code of this file.

Functions

void fret (PLONG Counter)
 
int main ()
 

Variables

char test [] = "SEH0019.c"
 

Function Documentation

◆ fret()

void fret ( PLONG  Counter)

Definition at line 10 of file seh0019.c.

10 {
11 try {
12 try {
13 /* set counter = 2 */
14 *Counter += 1;
15 }
16 finally {
17 /* set counter = 3 */
18 *Counter += 1;
19#ifdef _MSC_VER
20 return;
21#endif
22 }
23 endtry
24#ifndef _MSC_VER
25 return;
26#endif
27 }
28 finally {
29 /* set counter = 4 */
30 *Counter += 1;
31 }
32 endtry
33 return;
34}
#define endtry
Definition: seh.h:24
static LARGE_INTEGER Counter
Definition: clock.c:43

Referenced by main().

◆ main()

int main ( void  )

Definition at line 36 of file seh0019.c.

36 {
38
39 Counter = 0;
40
41 try {
42 /* set counter = 1 */
43 Counter += 1;
44 fret(&Counter);
45 }
46 finally {
47 /* set counter = 5 */
48 Counter += 1;
49 }
50 endtry
51
52 if (Counter != 5) {
53 printf("TEST 19 FAILED. Counter = %d\n\r", Counter);
54 return -1;
55 }
56
57 return 0;
58}
#define printf
Definition: freeldr.h:97
long LONG
Definition: pedump.c:60
void fret(PLONG Counter)
Definition: seh0019.c:10

Variable Documentation

◆ test

char test[] = "SEH0019.c"

Definition at line 8 of file seh0019.c.