mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 09:20:43 +08:00
[VCRUNTIME] Implement __std_terminate()
This commit is contained in:
@@ -27,7 +27,7 @@ list(APPEND VCRT_COMMON_SOURCES
|
||||
)
|
||||
|
||||
list(APPEND VCRT_RUNTIME_SOURCES
|
||||
# TBD
|
||||
__std_terminate.c
|
||||
)
|
||||
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user