mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[VCRUNTIME] Implement __std_terminate()
This commit is contained in:
parent
9186b861a6
commit
d243b6cdf3
2 changed files with 20 additions and 1 deletions
|
@ -27,7 +27,7 @@ list(APPEND VCRT_COMMON_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND VCRT_RUNTIME_SOURCES
|
list(APPEND VCRT_RUNTIME_SOURCES
|
||||||
# TBD
|
__std_terminate.c
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND VCRT_STARTUP_SOURCES
|
list(APPEND VCRT_STARTUP_SOURCES
|
||||||
|
|
19
sdk/lib/vcruntime/__std_terminate.c
Normal file
19
sdk/lib/vcruntime/__std_terminate.c
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
//
|
||||||
|
// __std_terminate.c
|
||||||
|
//
|
||||||
|
// Copyright (c) 2024 Timo Kreuzer
|
||||||
|
//
|
||||||
|
// Implementation of __std_terminate.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <process.h>
|
||||||
|
|
||||||
|
__declspec(noreturn) void __cdecl terminate();
|
||||||
|
|
||||||
|
__declspec(noreturn)
|
||||||
|
void __std_terminate(void)
|
||||||
|
{
|
||||||
|
terminate();
|
||||||
|
}
|
Loading…
Reference in a new issue