ReactOS  0.4.15-dev-1397-g19779b3
sehframes.cpp File Reference
#include <stdio.h>
#include <malloc.h>
#include <stdarg.h>
#include <memory.h>
Include dependency graph for sehframes.cpp:

Go to the source code of this file.

Classes

struct  SmallObj
 
struct  BigObj
 

Macros

#define ALIGN   64
 
#define ARG(x)   &x, sizeof(x)
 
#define ARG2(x)   ARG(x), ARG(x)
 
#define ARG5(x)   ARG(x), ARG(x), ARG(x), ARG(x), ARG(x)
 

Functions

int TestFunc (int,...)
 
int Simple (int arg)
 
int Try (int arg)
 
int GSCookie (int arg)
 
int TryAndGSCookie (int arg)
 
int Align (int arg)
 
int TryAndAlign (int arg)
 
int GSCookieAndAlign (int arg)
 
int TryAndGSCookieAndAlign (int arg)
 
int Alloca (int arg)
 
int TryAndAlloca (int arg)
 
int GSCookieAndAlloca (int arg)
 
int TryAndGSCookieAndAlloca (int arg)
 
int AlignAndAlloca (int arg)
 
int TryAndAlignAndAlloca (int arg)
 
int GSCookieAndAlignAndAlloca (int arg)
 
int TryAndGSCookieAndAlignAndAlloca (int arg)
 
int BigLocals (int arg)
 
int TryAndBigLocals (int arg)
 
int GSCookieAndBigLocals (int arg)
 
int TryAndGSCookieAndBigLocals (int arg)
 
int AlignAndBigLocals (int arg)
 
int TryAndAlignAndBigLocals (int arg)
 
int GSCookieAndAlignAndBigLocals (int arg)
 
int TryAndGSCookieAndAlignAndBigLocals (int arg)
 
int AllocaAndBigLocals (int arg)
 
int TryAndAllocaAndBigLocals (int arg)
 
int GSCookieAndAllocaAndBigLocals (int arg)
 
int TryAndGSCookieAndAllocaAndBigLocals (int arg)
 
int AlignAndAllocaAndBigLocals (int arg)
 
int TryAndAlignAndAllocaAndBigLocals (int arg)
 
int GSCookieAndAlignAndAllocaAndBigLocals (int arg)
 
int TryAndGSCookieAndAlignAndAllocaAndBigLocals (int arg)
 
int EbpAdj (int arg)
 
int TryAndEbpAdj (int arg)
 
int GSCookieAndEbpAdj (int arg)
 
int TryAndGSCookieAndEbpAdj (int arg)
 
int AlignAndEbpAdj (int arg)
 
int TryAndAlignAndEbpAdj (int arg)
 
int GSCookieAndAlignAndEbpAdj (int arg)
 
int TryAndGSCookieAndAlignAndEbpAdj (int arg)
 
int AllocaAndEbpAdj (int arg)
 
int TryAndAllocaAndEbpAdj (int arg)
 
int GSCookieAndAllocaAndEbpAdj (int arg)
 
int TryAndGSCookieAndAllocaAndEbpAdj (int arg)
 
int AlignAndAllocaAndEbpAdj (int arg)
 
int TryAndAlignAndAllocaAndEbpAdj (int arg)
 
int GSCookieAndAlignAndAllocaAndEbpAdj (int arg)
 
int TryAndGSCookieAndAlignAndAllocaAndEbpAdj (int arg)
 
 __declspec (noinline) int TestFunc(int x
 
 va_start (ap, x)
 
 for (;;)
 
 if (TestFuncThrows)
 
return static_cast< int > (global)
 
void RunTests ()
 
int main ()
 

Variables

int failures
 
int one = 1
 
int zero = 0
 
size_t global = 16
 
volatile bool TestFuncThrows
 

Macro Definition Documentation

◆ ALIGN

#define ALIGN   64

Definition at line 17 of file sehframes.cpp.

◆ ARG

#define ARG (   x)    &x, sizeof(x)

Definition at line 20 of file sehframes.cpp.

◆ ARG2

#define ARG2 (   x)    ARG(x), ARG(x)

Definition at line 21 of file sehframes.cpp.

◆ ARG5

#define ARG5 (   x)    ARG(x), ARG(x), ARG(x), ARG(x), ARG(x)

Definition at line 22 of file sehframes.cpp.

Function Documentation

◆ __declspec()

◆ Align()

int Align ( int  arg)

Definition at line 84 of file sehframes.cpp.

84  {
86  int res = 0;
87  __declspec(align(ALIGN)) double d[4];
88  SmallObj f;
89  __try { TestFunc(1, ARG(d), ARG(f), ARG(res), ARG(arg), NULL); }
90  __finally { res = TestFunc(1, ARG(d), ARG(f), ARG(res), ARG(arg), NULL); }
91  return res;
92 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ AlignAndAlloca()

int AlignAndAlloca ( int  arg)

Definition at line 188 of file sehframes.cpp.

188  {
190  int res = 0;
191  __declspec(align(ALIGN)) double d[4];
192  SmallObj f;
193  __try {
194  TestFunc(1, ARG(d), _alloca(global), global, ARG(f), ARG(res), ARG(arg),
195  NULL);
196  }
197  __finally { res = TestFunc(1, ARG(d), ARG(f), ARG(res), ARG(arg), NULL); }
198  return res;
199 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ AlignAndAllocaAndBigLocals()

int AlignAndAllocaAndBigLocals ( int  arg)

Definition at line 400 of file sehframes.cpp.

400  {
402  int res = 0;
403  __declspec(align(ALIGN)) double d[4];
404  BigObj f1;
405  __try {
406  TestFunc(1, ARG(d), _alloca(global), global, ARG(f1), ARG5(res), ARG(arg),
407  NULL);
408  }
409  __finally { res = TestFunc(1, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL); }
410  return res;
411 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ AlignAndAllocaAndEbpAdj()

int AlignAndAllocaAndEbpAdj ( int  arg)

Definition at line 647 of file sehframes.cpp.

647  {
649  int res = 0;
650  int a[512];
651  __declspec(align(ALIGN)) double d[4];
652  BigObj f1;
653  __try {
654  TestFunc(1, ARG(d), _alloca(global), global, ARG(f1), ARG2(a), ARG5(res),
655  ARG(arg), NULL);
656  }
657  __finally {
658  res = TestFunc(1, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
659  }
660  return res;
661 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ AlignAndBigLocals()

int AlignAndBigLocals ( int  arg)

Definition at line 296 of file sehframes.cpp.

296  {
298  int res = 0;
299  __declspec(align(ALIGN)) double d[4];
300  BigObj f1;
301  __try { TestFunc(1, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL); }
302  __finally { res = TestFunc(1, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL); }
303  return res;
304 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ AlignAndEbpAdj()

int AlignAndEbpAdj ( int  arg)

Definition at line 520 of file sehframes.cpp.

520  {
522  int res = 0;
523  int a[512];
524  __declspec(align(ALIGN)) double d[4];
525  BigObj f1;
526  __try { TestFunc(1, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
527  __finally {
528  res = TestFunc(1, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
529  }
530  return res;
531 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ Alloca()

int Alloca ( int  arg)

Definition at line 135 of file sehframes.cpp.

135  {
137  int res = 0;
138  SmallObj f;
139  __try {
140  TestFunc(1, _alloca(global), global, ARG(f), ARG(res), ARG(arg), NULL);
141  }
142  __finally { res = TestFunc(1, ARG(f), ARG(res), ARG(arg), NULL); }
143  return res;
144 }
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ AllocaAndBigLocals()

int AllocaAndBigLocals ( int  arg)

Definition at line 347 of file sehframes.cpp.

347  {
349  int res = 0;
350  BigObj f1;
351  __try {
352  TestFunc(1, _alloca(global), global, ARG(f1), ARG5(res), ARG(arg), NULL);
353  }
354  __finally { res = TestFunc(1, ARG(f1), ARG5(res), ARG(arg), NULL); }
355  return res;
356 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ AllocaAndEbpAdj()

int AllocaAndEbpAdj ( int  arg)

Definition at line 586 of file sehframes.cpp.

586  {
588  int res = 0;
589  int a[512];
590  BigObj f1;
591  __try {
592  TestFunc(1, _alloca(global), global, ARG(f1), ARG2(a), ARG5(res), ARG(arg),
593  NULL);
594  }
595  __finally { res = TestFunc(1, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
596  return res;
597 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ BigLocals()

int BigLocals ( int  arg)

Definition at line 254 of file sehframes.cpp.

254  {
256  int res = 0;
257  BigObj f1;
258  __try { TestFunc(1, ARG(f1), ARG5(res), ARG(arg), NULL); }
259  __finally { res = TestFunc(1, ARG(f1), ARG5(res), ARG(arg), NULL); }
260  return res;
261 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ EbpAdj()

int EbpAdj ( int  arg)

Definition at line 469 of file sehframes.cpp.

469  {
471  int res = 0;
472  int a[512];
473  BigObj f1;
474  __try { TestFunc(1, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
475  __finally { res = TestFunc(1, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
476  return res;
477 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ for()

for ( ;;  )

Definition at line 722 of file sehframes.cpp.

722  {
723  void *pbuf = va_arg(ap, void *);
724  if (pbuf == NULL) {
725  break;
726  }
727  size_t len = va_arg(ap, size_t);
728  memset(pbuf, 0, len);
729  }
Definition: pbuf.h:79
GLenum GLsizei len
Definition: glext.h:6722
#define va_arg(ap, T)
Definition: acmsvcex.h:89
#define NULL
Definition: types.h:112
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
#define memset(x, y, z)
Definition: compat.h:39

◆ GSCookie()

int GSCookie ( int  arg)

Definition at line 62 of file sehframes.cpp.

62  {
64  int res = 0;
65  char buf[16];
66  SmallObj f;
67  __try { TestFunc(1, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL); }
68  __finally { res = TestFunc(1, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL); }
69  return res;
70 }
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ GSCookieAndAlign()

int GSCookieAndAlign ( int  arg)

Definition at line 106 of file sehframes.cpp.

106  {
108  int res = 0;
109  char buf[16];
110  __declspec(align(ALIGN)) double d[4];
111  SmallObj f;
112  __try { TestFunc(1, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL); }
113  __finally {
114  res = TestFunc(1, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
115  }
116  return res;
117 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlignAndAlloca()

int GSCookieAndAlignAndAlloca ( int  arg)

Definition at line 216 of file sehframes.cpp.

216  {
218  int res = 0;
219  char buf[16];
220  __declspec(align(ALIGN)) double d[4];
221  SmallObj f;
222  __try {
223  TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f), ARG(res),
224  ARG(arg), NULL);
225  }
226  __finally {
227  res = TestFunc(1, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
228  }
229  return res;
230 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlignAndAllocaAndBigLocals()

int GSCookieAndAlignAndAllocaAndBigLocals ( int  arg)

Definition at line 428 of file sehframes.cpp.

428  {
430  int res = 0;
431  char buf[16];
432  __declspec(align(ALIGN)) double d[4];
433  BigObj f1;
434  __try {
435  TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f1), ARG5(res),
436  ARG(arg), NULL);
437  }
438  __finally {
439  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
440  }
441  return res;
442 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlignAndAllocaAndEbpAdj()

int GSCookieAndAlignAndAllocaAndEbpAdj ( int  arg)

Definition at line 680 of file sehframes.cpp.

680  {
682  int res = 0;
683  int a[512];
684  char buf[16];
685  __declspec(align(ALIGN)) double d[4];
686  BigObj f1;
687  __try {
688  TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f1), ARG2(a),
689  ARG5(res), ARG(arg), NULL);
690  }
691  __finally {
692  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
693  NULL);
694  }
695  return res;
696 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlignAndBigLocals()

int GSCookieAndAlignAndBigLocals ( int  arg)

Definition at line 318 of file sehframes.cpp.

318  {
320  int res = 0;
321  char buf[16];
322  __declspec(align(ALIGN)) double d[4];
323  BigObj f1;
324  __try { TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL); }
325  __finally {
326  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
327  }
328  return res;
329 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlignAndEbpAdj()

int GSCookieAndAlignAndEbpAdj ( int  arg)

Definition at line 549 of file sehframes.cpp.

549  {
551  int res = 0;
552  int a[512];
553  char buf[16];
554  __declspec(align(ALIGN)) double d[4];
555  BigObj f1;
556  __try {
557  TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
558  }
559  __finally {
560  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
561  NULL);
562  }
563  return res;
564 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ GSCookieAndAlloca()

int GSCookieAndAlloca ( int  arg)

Definition at line 160 of file sehframes.cpp.

160  {
162  int res = 0;
163  char buf[16];
164  SmallObj f;
165  __try {
166  TestFunc(1, ARG(buf), _alloca(global), global, ARG(f), ARG(res), ARG(arg),
167  NULL);
168  }
169  __finally { res = TestFunc(1, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL); }
170  return res;
171 }
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ GSCookieAndAllocaAndBigLocals()

int GSCookieAndAllocaAndBigLocals ( int  arg)

Definition at line 372 of file sehframes.cpp.

372  {
374  int res = 0;
375  char buf[16];
376  BigObj f1;
377  __try {
378  TestFunc(1, ARG(buf), _alloca(global), global, ARG(f1), ARG5(res), ARG(arg),
379  NULL);
380  }
381  __finally { res = TestFunc(1, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL); }
382  return res;
383 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ GSCookieAndAllocaAndEbpAdj()

int GSCookieAndAllocaAndEbpAdj ( int  arg)

Definition at line 614 of file sehframes.cpp.

614  {
616  int res = 0;
617  int a[512];
618  char buf[16];
619  BigObj f1;
620  __try {
621  TestFunc(1, ARG(buf), _alloca(global), global, ARG(f1), ARG2(a), ARG5(res),
622  ARG(arg), NULL);
623  }
624  __finally {
625  res = TestFunc(1, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
626  }
627  return res;
628 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ GSCookieAndBigLocals()

int GSCookieAndBigLocals ( int  arg)

Definition at line 274 of file sehframes.cpp.

274  {
276  int res = 0;
277  char buf[16];
278  BigObj f1;
279  __try { TestFunc(1, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL); }
280  __finally { res = TestFunc(1, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL); }
281  return res;
282 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ GSCookieAndEbpAdj()

int GSCookieAndEbpAdj ( int  arg)

Definition at line 491 of file sehframes.cpp.

491  {
493  int res = 0;
494  int a[512];
495  char buf[16];
496  BigObj f1;
497  __try { TestFunc(1, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
498  __finally {
499  res = TestFunc(1, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
500  }
501  return res;
502 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ if()

if ( TestFuncThrows  )

Definition at line 731 of file sehframes.cpp.

731  {
732  TestFuncThrows = false;
733  *(volatile int *)0;
734  }
volatile bool TestFuncThrows
Definition: sehframes.cpp:32

◆ main()

int main ( void  )

Definition at line 959 of file sehframes.cpp.

959  {
960  __try { RunTests(); }
961  __except(1) {
962  puts("ERROR - Unexpectedly caught an exception");
963  ++failures;
964  }
965 
966  if (failures) {
967  printf("Test failed with %d failure%s\n", failures,
968  failures == 1 ? "" : "s");
969  } else {
970  puts("Test passed");
971  }
972 
973  return failures;
974 }
void RunTests()
Definition: sehframes.cpp:739
int failures
Definition: sehframes.cpp:26
int puts(const char *string)
Definition: crtsupp.c:23
#define printf
Definition: config.h:203

◆ RunTests()

void RunTests ( )

Definition at line 739 of file sehframes.cpp.

739  {
740  puts("Test pass 1 - no exceptions");
741 
742  __try {
743  Simple(1);
744  Try(1);
745  GSCookie(1);
746  TryAndGSCookie(1);
747  Align(1);
748  TryAndAlign(1);
749  GSCookieAndAlign(1);
751  Alloca(1);
752  TryAndAlloca(1);
755  AlignAndAlloca(1);
759  BigLocals(1);
760  TryAndBigLocals(1);
775  EbpAdj(1);
776  TryAndEbpAdj(1);
779  AlignAndEbpAdj(1);
783  AllocaAndEbpAdj(1);
791  }
792  __except(one) {
793  puts("ERROR - exception not expected");
794  ++failures;
795  }
796 
797  puts("Test pass 2 - exceptions");
798 
799  for (int i = 0; i < 48; ++i) {
800  TestFuncThrows = true;
801  bool caught = false;
802  __try {
803  switch (i) {
804  case 0:
805  Simple(1);
806  break;
807  case 1:
808  Try(1);
809  break;
810  case 2:
811  GSCookie(1);
812  break;
813  case 3:
814  TryAndGSCookie(1);
815  break;
816  case 4:
817  Align(1);
818  break;
819  case 5:
820  TryAndAlign(1);
821  break;
822  case 6:
823  GSCookieAndAlign(1);
824  break;
825  case 7:
827  break;
828  case 8:
829  Alloca(1);
830  break;
831  case 9:
832  TryAndAlloca(1);
833  break;
834  case 10:
836  break;
837  case 11:
839  break;
840  case 12:
841  AlignAndAlloca(1);
842  break;
843  case 13:
845  break;
846  case 14:
848  break;
849  case 15:
851  break;
852  case 16:
853  BigLocals(1);
854  break;
855  case 17:
856  TryAndBigLocals(1);
857  break;
858  case 18:
860  break;
861  case 19:
863  break;
864  case 20:
866  break;
867  case 21:
869  break;
870  case 22:
872  break;
873  case 23:
875  break;
876  case 24:
878  break;
879  case 25:
881  break;
882  case 26:
884  break;
885  case 27:
887  break;
888  case 28:
890  break;
891  case 29:
893  break;
894  case 30:
896  break;
897  case 31:
899  break;
900  case 32:
901  EbpAdj(1);
902  break;
903  case 33:
904  TryAndEbpAdj(1);
905  break;
906  case 34:
908  break;
909  case 35:
911  break;
912  case 36:
913  AlignAndEbpAdj(1);
914  break;
915  case 37:
917  break;
918  case 38:
920  break;
921  case 39:
923  break;
924  case 40:
925  AllocaAndEbpAdj(1);
926  break;
927  case 41:
929  break;
930  case 42:
932  break;
933  case 43:
935  break;
936  case 44:
938  break;
939  case 45:
941  break;
942  case 46:
944  break;
945  case 47:
947  break;
948  }
949  }
950  __except(one) { caught = true; }
951 
952  if (!caught) {
953  puts("ERROR - did not see expected exception");
954  ++failures;
955  }
956  }
957 }
int GSCookieAndAlignAndEbpAdj(int arg)
Definition: sehframes.cpp:549
int GSCookieAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:372
int AllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:586
int GSCookieAndEbpAdj(int arg)
Definition: sehframes.cpp:491
int TryAndGSCookieAndAlignAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:444
int BigLocals(int arg)
Definition: sehframes.cpp:254
int AlignAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:647
int GSCookieAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:614
int GSCookieAndAlignAndBigLocals(int arg)
Definition: sehframes.cpp:318
int TryAndAlignAndBigLocals(int arg)
Definition: sehframes.cpp:306
int Alloca(int arg)
Definition: sehframes.cpp:135
int TryAndGSCookieAndAlignAndBigLocals(int arg)
Definition: sehframes.cpp:331
int GSCookieAndBigLocals(int arg)
Definition: sehframes.cpp:274
int TryAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:599
int Try(int arg)
Definition: sehframes.cpp:51
int TryAndGSCookieAndEbpAdj(int arg)
Definition: sehframes.cpp:504
int AllocaAndBigLocals(int arg)
Definition: sehframes.cpp:347
int TryAndAlignAndEbpAdj(int arg)
Definition: sehframes.cpp:533
int one
Definition: sehframes.cpp:28
int TryAndGSCookieAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:630
int TryAndAlignAndAlloca(int arg)
Definition: sehframes.cpp:201
int TryAndAlignAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:413
int AlignAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:400
int GSCookieAndAlignAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:680
int TryAndGSCookieAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:385
int Simple(int arg)
Definition: sehframes.cpp:42
int failures
Definition: sehframes.cpp:26
int TryAndBigLocals(int arg)
Definition: sehframes.cpp:263
int GSCookieAndAlign(int arg)
Definition: sehframes.cpp:106
int TryAndGSCookieAndAlloca(int arg)
Definition: sehframes.cpp:173
int AlignAndBigLocals(int arg)
Definition: sehframes.cpp:296
int TryAndGSCookieAndAlign(int arg)
Definition: sehframes.cpp:119
int AlignAndEbpAdj(int arg)
Definition: sehframes.cpp:520
int Align(int arg)
Definition: sehframes.cpp:84
int puts(const char *string)
Definition: crtsupp.c:23
int EbpAdj(int arg)
Definition: sehframes.cpp:469
int AlignAndAlloca(int arg)
Definition: sehframes.cpp:188
int TryAndAlloca(int arg)
Definition: sehframes.cpp:146
volatile bool TestFuncThrows
Definition: sehframes.cpp:32
int TryAndGSCookie(int arg)
Definition: sehframes.cpp:72
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
int TryAndGSCookieAndBigLocals(int arg)
Definition: sehframes.cpp:284
int GSCookieAndAlloca(int arg)
Definition: sehframes.cpp:160
int GSCookieAndAlignAndAlloca(int arg)
Definition: sehframes.cpp:216
int TryAndGSCookieAndAlignAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:698
int TryAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:358
int TryAndAlignAndAllocaAndEbpAdj(int arg)
Definition: sehframes.cpp:663
int TryAndEbpAdj(int arg)
Definition: sehframes.cpp:479
int GSCookieAndAlignAndAllocaAndBigLocals(int arg)
Definition: sehframes.cpp:428
int TryAndGSCookieAndAlignAndEbpAdj(int arg)
Definition: sehframes.cpp:566
int GSCookie(int arg)
Definition: sehframes.cpp:62
int TryAndGSCookieAndAlignAndAlloca(int arg)
Definition: sehframes.cpp:232
int TryAndAlign(int arg)
Definition: sehframes.cpp:94

Referenced by main().

◆ Simple()

int Simple ( int  arg)

Definition at line 42 of file sehframes.cpp.

42  {
44  int res = 0;
45  SmallObj f;
46  __try { TestFunc(1, ARG(f), ARG(res), ARG(arg), NULL); }
47  __finally { res = TestFunc(1, ARG(f), ARG(res), ARG(arg), NULL); }
48  return res;
49 }
int TestFunc(int,...)
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ static_cast< int >()

◆ TestFunc()

◆ Try()

int Try ( int  arg)

Definition at line 51 of file sehframes.cpp.

51  {
53  int res = 0;
54  SmallObj f;
55  __try { res = TestFunc(1, ARG(f), ARG(res), ARG(arg), NULL); }
56  __except(TestFunc(2, ARG(f), ARG(res), ARG(arg), NULL), zero) {
57  res = TestFunc(2, ARG(f), ARG(res), ARG(arg), NULL);
58  }
59  return res;
60 }
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndAlign()

int TryAndAlign ( int  arg)

Definition at line 94 of file sehframes.cpp.

94  {
96  int res = 0;
97  __declspec(align(ALIGN)) double d[4];
98  SmallObj f;
99  __try { res = TestFunc(1, ARG(d), ARG(f), ARG(res), ARG(arg), NULL); }
100  __except(TestFunc(2, ARG(d), ARG(f), ARG(res), ARG(arg), NULL), zero) {
101  res = TestFunc(2, ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
102  }
103  return res;
104 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlignAndAlloca()

int TryAndAlignAndAlloca ( int  arg)

Definition at line 201 of file sehframes.cpp.

201  {
203  int res = 0;
204  __declspec(align(ALIGN)) double d[4];
205  SmallObj f;
206  __try {
207  res = TestFunc(1, ARG(d), _alloca(global), global, ARG(f), ARG(res),
208  ARG(arg), NULL);
209  }
210  __except(TestFunc(2, ARG(d), ARG(f), ARG(res), ARG(arg), NULL), zero) {
211  res = TestFunc(2, ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
212  }
213  return res;
214 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlignAndAllocaAndBigLocals()

int TryAndAlignAndAllocaAndBigLocals ( int  arg)

Definition at line 413 of file sehframes.cpp.

413  {
415  int res = 0;
416  __declspec(align(ALIGN)) double d[4];
417  BigObj f1;
418  __try {
419  res = TestFunc(1, ARG(d), _alloca(global), global, ARG(f1), ARG5(res),
420  ARG(arg), NULL);
421  }
422  __except(TestFunc(2, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
423  res = TestFunc(2, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
424  }
425  return res;
426 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlignAndAllocaAndEbpAdj()

int TryAndAlignAndAllocaAndEbpAdj ( int  arg)

Definition at line 663 of file sehframes.cpp.

663  {
665  int res = 0;
666  int a[512];
667  __declspec(align(ALIGN)) double d[4];
668  BigObj f1;
669  __try {
670  res = TestFunc(1, ARG(d), _alloca(global), global, ARG(f1), ARG2(a),
671  ARG5(res), ARG(arg), NULL);
672  }
673  __except(TestFunc(2, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL),
674  zero) {
675  res = TestFunc(2, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
676  }
677  return res;
678 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlignAndBigLocals()

int TryAndAlignAndBigLocals ( int  arg)

Definition at line 306 of file sehframes.cpp.

306  {
308  int res = 0;
309  __declspec(align(ALIGN)) double d[4];
310  BigObj f1;
311  __try { res = TestFunc(1, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL); }
312  __except(TestFunc(2, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
313  res = TestFunc(2, ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
314  }
315  return res;
316 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlignAndEbpAdj()

int TryAndAlignAndEbpAdj ( int  arg)

Definition at line 533 of file sehframes.cpp.

533  {
535  int res = 0;
536  int a[512];
537  __declspec(align(ALIGN)) double d[4];
538  BigObj f1;
539  __try {
540  res = TestFunc(1, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
541  }
542  __except(TestFunc(2, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL),
543  zero) {
544  res = TestFunc(2, ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
545  }
546  return res;
547 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndAlloca()

int TryAndAlloca ( int  arg)

Definition at line 146 of file sehframes.cpp.

146  {
148  int res = 0;
149  SmallObj f;
150  __try {
151  res =
152  TestFunc(1, _alloca(global), global, ARG(f), ARG(res), ARG(arg), NULL);
153  }
154  __except(TestFunc(2, ARG(f), ARG(res), ARG(arg), NULL), zero) {
155  res = TestFunc(2, ARG(f), ARG(res), ARG(arg), NULL);
156  }
157  return res;
158 }
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndAllocaAndBigLocals()

int TryAndAllocaAndBigLocals ( int  arg)

Definition at line 358 of file sehframes.cpp.

358  {
360  int res = 0;
361  BigObj f1;
362  __try {
363  res = TestFunc(1, _alloca(global), global, ARG(f1), ARG5(res), ARG(arg),
364  NULL);
365  }
366  __except(TestFunc(2, ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
367  res = TestFunc(2, ARG(f1), ARG5(res), ARG(arg), NULL);
368  }
369  return res;
370 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndAllocaAndEbpAdj()

int TryAndAllocaAndEbpAdj ( int  arg)

Definition at line 599 of file sehframes.cpp.

599  {
601  int res = 0;
602  int a[512];
603  BigObj f1;
604  __try {
605  res = TestFunc(1, _alloca(global), global, ARG(f1), ARG2(a), ARG5(res),
606  ARG(arg), NULL);
607  }
608  __except(TestFunc(2, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL), zero) {
609  res = TestFunc(2, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
610  }
611  return res;
612 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndBigLocals()

int TryAndBigLocals ( int  arg)

Definition at line 263 of file sehframes.cpp.

263  {
265  int res = 0;
266  BigObj f1;
267  __try { res = TestFunc(1, ARG(f1), ARG5(res), ARG(arg), NULL); }
268  __except(TestFunc(2, ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
269  res = TestFunc(2, ARG(f1), ARG5(res), ARG(arg), NULL);
270  }
271  return res;
272 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndEbpAdj()

int TryAndEbpAdj ( int  arg)

Definition at line 479 of file sehframes.cpp.

479  {
481  int res = 0;
482  int a[512];
483  BigObj f1;
484  __try { res = TestFunc(1, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL); }
485  __except(TestFunc(2, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL), zero) {
486  res = TestFunc(2, ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
487  }
488  return res;
489 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookie()

int TryAndGSCookie ( int  arg)

Definition at line 72 of file sehframes.cpp.

72  {
74  int res = 0;
75  char buf[16];
76  SmallObj f;
77  __try { res = TestFunc(1, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL); }
78  __except(TestFunc(2, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL), zero) {
79  res = TestFunc(2, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL);
80  }
81  return res;
82 }
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookieAndAlign()

int TryAndGSCookieAndAlign ( int  arg)

Definition at line 119 of file sehframes.cpp.

119  {
121  int res = 0;
122  char buf[16];
123  __declspec(align(ALIGN)) double d[4];
124  SmallObj f;
125  __try {
126  res = TestFunc(1, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
127  }
128  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL),
129  zero) {
130  res = TestFunc(2, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
131  }
132  return res;
133 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlignAndAlloca()

int TryAndGSCookieAndAlignAndAlloca ( int  arg)

Definition at line 232 of file sehframes.cpp.

232  {
234  int res = 0;
235  char buf[16];
236  __declspec(align(ALIGN)) double d[4];
237  SmallObj f;
238  __try {
239  res = TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f),
240  ARG(res), ARG(arg), NULL);
241  }
242  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL),
243  zero) {
244  res = TestFunc(2, ARG(buf), ARG(d), ARG(f), ARG(res), ARG(arg), NULL);
245  }
246  return res;
247 }
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlignAndAllocaAndBigLocals()

int TryAndGSCookieAndAlignAndAllocaAndBigLocals ( int  arg)

Definition at line 444 of file sehframes.cpp.

444  {
446  int res = 0;
447  char buf[16];
448  __declspec(align(ALIGN)) double d[4];
449  BigObj f1;
450  __try {
451  res = TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f1),
452  ARG5(res), ARG(arg), NULL);
453  }
454  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL),
455  zero) {
456  res = TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
457  }
458  return res;
459 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlignAndAllocaAndEbpAdj()

int TryAndGSCookieAndAlignAndAllocaAndEbpAdj ( int  arg)

Definition at line 698 of file sehframes.cpp.

698  {
700  int res = 0;
701  int a[512];
702  char buf[16];
703  __declspec(align(ALIGN)) double d[4];
704  BigObj f1;
705  __try {
706  res = TestFunc(1, ARG(buf), ARG(d), _alloca(global), global, ARG(f1),
707  ARG2(a), ARG5(res), ARG(arg), NULL);
708  }
709  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
710  NULL),
711  zero) {
712  res = TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
713  NULL);
714  }
715  return res;
716 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlignAndBigLocals()

int TryAndGSCookieAndAlignAndBigLocals ( int  arg)

Definition at line 331 of file sehframes.cpp.

331  {
333  int res = 0;
334  char buf[16];
335  __declspec(align(ALIGN)) double d[4];
336  BigObj f1;
337  __try {
338  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
339  }
340  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL),
341  zero) {
342  res = TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG5(res), ARG(arg), NULL);
343  }
344  return res;
345 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlignAndEbpAdj()

int TryAndGSCookieAndAlignAndEbpAdj ( int  arg)

Definition at line 566 of file sehframes.cpp.

566  {
568  int res = 0;
569  int a[512];
570  char buf[16];
571  __declspec(align(ALIGN)) double d[4];
572  BigObj f1;
573  __try {
574  res = TestFunc(1, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
575  NULL);
576  }
577  __except(TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
578  NULL),
579  zero) {
580  res = TestFunc(2, ARG(buf), ARG(d), ARG(f1), ARG2(a), ARG5(res), ARG(arg),
581  NULL);
582  }
583  return res;
584 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
int align(int length, int align)
Definition: dsound8.c:36
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
#define ALIGN
Definition: sehframes.cpp:17
__declspec(noinline) int TestFunc(int x
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112
#define d
Definition: ke_i.h:81

Referenced by RunTests().

◆ TryAndGSCookieAndAlloca()

int TryAndGSCookieAndAlloca ( int  arg)

Definition at line 173 of file sehframes.cpp.

173  {
175  int res = 0;
176  char buf[16];
177  SmallObj f;
178  __try {
179  res = TestFunc(1, ARG(buf), _alloca(global), global, ARG(f), ARG(res),
180  ARG(arg), NULL);
181  }
182  __except(TestFunc(2, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL), zero) {
183  res = TestFunc(2, ARG(buf), ARG(f), ARG(res), ARG(arg), NULL);
184  }
185  return res;
186 }
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
GLfloat f
Definition: glext.h:7540
int puts(const char *string)
Definition: crtsupp.c:23
#define f
Definition: ke_i.h:83
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookieAndAllocaAndBigLocals()

int TryAndGSCookieAndAllocaAndBigLocals ( int  arg)

Definition at line 385 of file sehframes.cpp.

385  {
387  int res = 0;
388  char buf[16];
389  BigObj f1;
390  __try {
391  res = TestFunc(1, ARG(buf), _alloca(global), global, ARG(f1), ARG5(res),
392  ARG(arg), NULL);
393  }
394  __except(TestFunc(2, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
395  res = TestFunc(2, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL);
396  }
397  return res;
398 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookieAndAllocaAndEbpAdj()

int TryAndGSCookieAndAllocaAndEbpAdj ( int  arg)

Definition at line 630 of file sehframes.cpp.

630  {
632  int res = 0;
633  int a[512];
634  char buf[16];
635  BigObj f1;
636  __try {
637  res = TestFunc(1, ARG(buf), _alloca(global), global, ARG(f1), ARG2(a),
638  ARG5(res), ARG(arg), NULL);
639  }
640  __except(TestFunc(2, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL),
641  zero) {
642  res = TestFunc(2, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
643  }
644  return res;
645 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
size_t global
Definition: sehframes.cpp:31
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookieAndBigLocals()

int TryAndGSCookieAndBigLocals ( int  arg)

Definition at line 284 of file sehframes.cpp.

284  {
286  int res = 0;
287  char buf[16];
288  BigObj f1;
289  __try { res = TestFunc(1, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL); }
290  __except(TestFunc(2, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL), zero) {
291  res = TestFunc(2, ARG(buf), ARG(f1), ARG5(res), ARG(arg), NULL);
292  }
293  return res;
294 }
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ TryAndGSCookieAndEbpAdj()

int TryAndGSCookieAndEbpAdj ( int  arg)

Definition at line 504 of file sehframes.cpp.

504  {
506  int res = 0;
507  int a[512];
508  char buf[16];
509  BigObj f1;
510  __try {
511  res = TestFunc(1, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
512  }
513  __except(TestFunc(2, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL),
514  zero) {
515  res = TestFunc(2, ARG(buf), ARG(f1), ARG2(a), ARG5(res), ARG(arg), NULL);
516  }
517  return res;
518 }
#define ARG2(x)
Definition: sehframes.cpp:21
#define ARG5(x)
Definition: sehframes.cpp:22
int TestFunc(int,...)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int zero
Definition: sehframes.cpp:29
#define ARG(x)
Definition: sehframes.cpp:20
int puts(const char *string)
Definition: crtsupp.c:23
#define f1(x, y, z)
Definition: sha1.c:30
#define NULL
Definition: types.h:112
GLuint res
Definition: glext.h:9613
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define __FUNCTION__
Definition: types.h:112

Referenced by RunTests().

◆ va_start()

va_start ( ap  ,
x   
)

Referenced by __report_error(), _cprintf(), _CrtDbgReport(), _CrtDbgReportW(), _cwprintf(), _open(), _PrintNtConsole(), _scprintf(), _scwprintf(), _snprintf(), _sopen(), _sxprintf(), _test_assigned_proc(), _texecl(), _texecle(), _texeclp(), _texeclpe(), _tspawnl(), _tspawnle(), _tspawnlp(), _tspawnlpe(), _wopen(), ACDBG_FN(), AcpiBiosError(), AcpiBiosException(), AcpiBiosWarning(), AcpiError(), AcpiException(), AcpiInfo(), AcpiOsPrintf(), AcpiUtPredefinedBiosError(), AcpiUtPredefinedInfo(), AcpiUtPredefinedWarning(), AcpiWarning(), CRegistryTree::AddErrorDescription(), AddToSendBuffer(), adns__debug(), adns__diag(), adns__warn(), XMLStorage::XS_String::appendf(), asprintf(), atltest_ok(), atltest_skip(), BestFit_Write(), BlStatusPrint(), call_varargs(), chat(), CheckAcl__(), CheckBuffer(), CheckDirectorySecurity__(), CheckKeySecurity__(), CheckPattern(), chmcerr_set(), CombinePaths(), comerr(), comerrno(), command(), ConcatPaths(), ConErrPrintf(), configparseerr(), ConFormatMessage(), ConMsgPrintf(), ConOutPrintfPaging(), ConPrintf(), ConResMsgPrintf(), ConResMsgPrintfEx(), ConResPrintf(), ConResPrintfEx(), CONSOLE_ConOutPrintf(), CONSOLE_PrintTextXY(), CONSOLE_PrintTextXYN(), CONSOLE_SetStatusText(), CONSOLE_SetStatusTextAutoFitX(), CONSOLE_SetStatusTextX(), CreateStorageRequestBlock(), cxlog(), DbgP(), DbgPrint(), DbgPrintEarly(), DbgPrintEx(), anonymous_namespace{mstscax.cpp}::dbgprintf(), DbgPrintReturnControlC(), debug(), debug_printf(), DebugFunction(), DebugPrintf(), die(), DirPrintf(), DisplayMessage(), DoTraceLevelMessage(), dprintf(), dprintk(), Dynscat(), EfiPrintf(), eprintf(), err(), errmsg(), errmsgno(), Error(), error(), error_exit(), error_loc(), error_loc_info(), ErrorMessage(), ErrorMessageBox(), ErrorMsgBox(), errx(), expect_files(), ext3_warning(), Fatal(), FatalError(), fmtout(), CHString::Format(), ATL::CStringT< BaseType, StringTraits >::Format(), FormatBox(), FormatMenuString(), ATL::CStringT< BaseType, StringTraits >::FormatMessage(), FormatMessageBox(), FormatMsg(), FormatOutput(), FormatString(), fprintf(), fprintf_s(), fprintfSocket(), FrLdrBugCheckWithMessage(), FTPCmd(), FTPCmdNoResponse(), FTPStartDataCmd(), fwprintf(), fwprintf_s(), FxIFR(), FxWmiTraceMessage(), getallargs(), getargs(), getlallargs(), getlargs(), indent_printf(), InfoMessageBox(), InitializeStorageRequestBlock(), isohybrid_error(), isohybrid_warning(), js_error(), js_fprintf(), js_printf(), js_snprintf(), KdbpPrint(), KdbpPrintDisasm(), KdpDprintf(), LIBXML_ATTR_FORMAT(), LIBXSLT_ATTR_FORMAT(), LoadAndFormatString(), LoadAndFormatStringsCat(), LoadAndPrintString(), LocalizedError(), log_debug(), LogMessage(), logmsg(), MakeAcl(), MakePattern(), METADC_Dispatch(), ModuleMessage(), mp_clear_multi(), mp_init_multi(), msg(), MsgBoxPrint(), MsgDumpPrintf(), msi_build_directory_name(), MSI_OpenQuery(), MSI_QueryGetRecord(), MUIDisplayError(), Mx::MxDbgPrint(), my_sprintf(), my_swprintf(), MyMessageBox(), myprintf(), NFS41DbgPrint(), note(), ok_(), OpenMsg(), Output(), output_string(), OutputText(), parser_warning(), PciIdeXDebugPrint(), PciIdPrintf(), PciIdPrintfAppend(), pdie(), PICE_sprintf(), pp_internal_error(), pp_writestring(), ppy_error(), ppy_warning(), tinyxml2::XMLPrinter::Print(), print_client(), print_error(), print_file(), print_proxy(), print_server(), printf(), PrintF(), XMLStorage::XS_String::printf(), PRINTF_ATTR(), printf_s(), printk(), printm(), PrintMessage(), PrintMessageAnsi(), PrintMessageStringV(), PrintMessageV(), PrintParserError(), PrintResourceString(), PrintRow(), PrintString(), PrintText(), pSetupDebugPrint(), put_str(), RCmd(), RegistryStatus(), report(), ros_dbg_log(), RtlStringCbPrintfA(), RtlStringCbPrintfExA(), RtlStringCbPrintfExW(), RtlStringCbPrintfW(), RtlStringCchPrintfA(), RtlStringCchPrintfExA(), RtlStringCchPrintfExW(), RtlStringCchPrintfW(), RtlUnicodeStringPrintf(), RtlUnicodeStringPrintfEx(), SafeFormatString(), ScsiDebugPrint(), ScsiPortNotification(), seamless_send(), SeiDbgPrint(), send_str(), SerenumInitMultiSzString(), service_ok(), service_trace(), CRegistryTree::SetError(), SetParameters(), CardButton::SetText(), SetXtermTitle(), shader_addline(), ShimDbgPrint(), snprintf(), snprintfW(), sprintf(), sprintf_nt(), sprintfW(), StatusBarLoadAndFormatString(), StorPortDebugPrint(), StorPortNotification(), str_printf(), StreamClassDebugPrint(), string_buffer_sprintf(), string_error::string_error(), StringCbPrintfA(), StringCbPrintfExA(), StringCbPrintfExW(), StringCbPrintfW(), StringCchPrintfA(), StringCchPrintfExA(), StringCchPrintfExW(), StringCchPrintfW(), strmake(), StrNCatBuff(), syslog(), TIFFError(), TIFFErrorExt(), TIFFGetField(), TIFFGetFieldDefaulted(), TIFFSetField(), TIFFWarning(), TIFFWarningExt(), Trace(), TuiPrintf(), UiMessageBox(), UnderlinedResPrintf(), unimpl(), usageerr(), USetupErrorRoutine(), VddDbgMsg(), verify_mru_(), VfatPrint(), VideoPortDebugPrint(), warn(), warning(), warning_loc_info(), warnx(), Win32DbgPrint(), wine_dbg_log(), wine_dbg_printf(), wine_dbg_sprintf(), WINETEST_PRINTF_ATTR(), wintirpc_debug(), wprintf(), wprintf_s(), write_line(), write_status(), WriteToLogPrintf(), wstring_sprintf(), xcomerr(), xcomerrno(), xfprintf(), xmlGenericErrorDefaultFunc(), xmlStrPrintf(), and xprintf().

Variable Documentation

◆ failures

int failures

Definition at line 26 of file sehframes.cpp.

Referenced by main(), and RunTests().

◆ global

◆ one

◆ TestFuncThrows

volatile bool TestFuncThrows

Definition at line 32 of file sehframes.cpp.

Referenced by if(), and RunTests().

◆ zero

int zero = 0

Definition at line 29 of file sehframes.cpp.

Referenced by _IRQL_requires_max_(), ACTION_FileVersionMatches(), add_userkey(), apartment_release(), AtapiRegCheckParameterValue(), bsc_thread(), CdRomCheckRegistryForMediaChangeValue(), ClassMoniker_Load(), ClassMoniker_Save(), ClasspSetMediaChangeStateEx(), clear_first_megabyte(), ComponentFactory_CreateMetadataReaderFromContainer(), cowait_unmarshal_thread(), create_body_offset_list(), create_decoder(), CryptSIPRetrieveSubjectGuid(), D3DXQuaternionSquadSetup(), DeviceSetMediaChangeStateEx(), do_file_copyW(), encode_backchannel_sec_parms(), encode_op_bind_conn_to_session(), encode_op_close(), encode_op_delegpurge(), encode_op_exchange_id(), encode_op_layoutcommit(), encode_op_layoutreturn(), encode_op_reclaim_complete(), EngAllocMem(), Ext2SetReparsePoint(), ftruncate_growable(), FxRegistrySettingsInitialize(), g_malloc(), get_block_bh(), get_block_bh_mdl(), get_block_bh_pin(), get_stream_size(), HTTP_ParseDate(), InputProcessorProfiles_AddLanguageProfile(), interp_step(), IPADDRESS_UpdateText(), IStream_Reset(), marshal_stgmed(), marshal_WdtpInterfacePointer(), MCIAVI_mciInfo(), METAFILE_CreateCompressedImageStream(), MIDI_mciInfo(), MimeMessage_Load(), msi_init_string_table(), nfs41_send_compound(), nfstime_abs(), open_file2(), pshader_hw_texdepth(), pshader_hw_texm3x2depth(), ReadBytes(), RegisterDragDrop(), registerset_clear(), ScsiClassQueryTimeOutRegistryValue(), shader_hw_mov(), shader_hw_nrm(), shader_hw_pow(), SHIsEmptyStream(), StdGlobalInterfaceTable_RegisterInterfaceInGlobal(), StorageBaseImpl_DeleteStorageTree(), stream_get_chunk(), test_bsc_marshaling(), test_decode_msg_get_param(), test_ExitCode(), test_external_connection(), test_GetAddrInfoW(), test_GetDataHere_Proxy(), test_IStream_invalid_operations(), test_marshal_dispinterface(), test_MessageOptions(), test_send(), TransactedSnapshotImpl_Commit(), TransactedSnapshotImpl_DestroyTemporaryCopy(), TransactedSnapshotImpl_Revert(), TransactedSnapshotImpl_StreamSetSize(), trio_nzero(), Try(), TryAndAlign(), TryAndAlignAndAlloca(), TryAndAlignAndAllocaAndBigLocals(), TryAndAlignAndAllocaAndEbpAdj(), TryAndAlignAndBigLocals(), TryAndAlignAndEbpAdj(), TryAndAlloca(), TryAndAllocaAndBigLocals(), TryAndAllocaAndEbpAdj(), TryAndBigLocals(), TryAndEbpAdj(), TryAndGSCookie(), TryAndGSCookieAndAlign(), TryAndGSCookieAndAlignAndAlloca(), TryAndGSCookieAndAlignAndAllocaAndBigLocals(), TryAndGSCookieAndAlignAndAllocaAndEbpAdj(), TryAndGSCookieAndAlignAndBigLocals(), TryAndGSCookieAndAlignAndEbpAdj(), TryAndGSCookieAndAlloca(), TryAndGSCookieAndAllocaAndBigLocals(), TryAndGSCookieAndAllocaAndEbpAdj(), TryAndGSCookieAndBigLocals(), TryAndGSCookieAndEbpAdj(), unmarshal_stgmed(), VfdLoadLink(), vshader_add_footer(), WAVE_mciInfo(), WCachePreReadPacket__(), WCacheUpdatePacket(), xdr_channel_attrs4(), and xslprocessor_transform().