From d7e28db400351c45c7751b878a621ab46815d01b Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Wed, 28 May 2008 21:37:05 +0000 Subject: [PATCH] Sorry, forgot this file svn path=/trunk/; revision=33748 --- reactos/lib/sdk/crt/except/checkesp.c | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 reactos/lib/sdk/crt/except/checkesp.c diff --git a/reactos/lib/sdk/crt/except/checkesp.c b/reactos/lib/sdk/crt/except/checkesp.c new file mode 100644 index 00000000000..02e41f4aab7 --- /dev/null +++ b/reactos/lib/sdk/crt/except/checkesp.c @@ -0,0 +1,35 @@ +/********************************************************************* +* _chkesp (MSVCRT.@) +* +* Trap to a debugger if the value of the stack pointer has changed. +* +* PARAMS +* None. +* +* RETURNS +* Does not return. +* +* NOTES +* This function is available for iX86 only. +* +* When VC++ generates debug code, it stores the value of the stack pointer +* before calling any external function, and checks the value following +* the call. It then calls this function, which will trap if the values are +* not the same. Usually this means that the prototype used to call +* the function is incorrect. It can also mean that the .spec entry has +* the wrong calling convention or parameters. +*/ + +#ifdef __i386__ + +void _chkesp(void) +{ +} + +#else + +void _chkesp(void) +{ +} + +#endif /* __i386__ */ -- 2.17.1