[VCRUNTIME] Implement __std_terminate()

This commit is contained in:
Timo Kreuzer 2025-01-28 21:57:55 +02:00
parent 9186b861a6
commit d243b6cdf3
2 changed files with 20 additions and 1 deletions

View file

@ -27,7 +27,7 @@ list(APPEND VCRT_COMMON_SOURCES
)
list(APPEND VCRT_RUNTIME_SOURCES
# TBD
__std_terminate.c
)
list(APPEND VCRT_STARTUP_SOURCES

View 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();
}