mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
28 lines
621 B
C
28 lines
621 B
C
|
|
#include <precomp.h>
|
|
|
|
typedef void (__cdecl *MSVCRT_purecall_handler)(void);
|
|
|
|
static MSVCRT_purecall_handler purecall_handler = NULL;
|
|
|
|
/* _set_purecall_handler - not exported in native msvcrt */
|
|
MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler function)
|
|
{
|
|
MSVCRT_purecall_handler ret = purecall_handler;
|
|
|
|
TRACE("(%p)\n", function);
|
|
purecall_handler = function;
|
|
return ret;
|
|
}
|
|
|
|
/*********************************************************************
|
|
* _purecall (MSVCRT.@)
|
|
*/
|
|
void CDECL _purecall(void)
|
|
{
|
|
if(purecall_handler)
|
|
purecall_handler();
|
|
_amsg_exit( 25 );
|
|
}
|
|
|