2 * PROJECT: MSVC runtime check support library
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * PURPOSE: Provides support functions for MSVC runtime checks
5 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
11 EXTERN __RTC_Failure:PROC
15 This function is invoked like this:
18 // Do the actual function call
22 http://stackoverflow.com/questions/3914750/hows-rtc-checkesp-implemented
27 /* We check if the zero flag is set, and if it is, everything is fine
28 and we return to the caller */
29 je __RTC_CheckEsp_return
35 // void _RTC_Failure(void* retaddr, int errnum);
37 push dword ptr [esp + 4] // retaddr
44 __RTC_CheckEsp_return: