You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
607 B
25 lines
607 B
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include <stdio.h>
|
|
|
|
#define STUB_WEAK(name) \
|
|
extern "C" void name() { \
|
|
printf("called " #name); \
|
|
asm volatile("ud2"); \
|
|
}
|
|
|
|
extern "C" void __cxa_thread_atexit_impl() {}
|
|
|
|
STUB_WEAK(__assert)
|
|
STUB_WEAK(ZSTD_trace_compress_begin)
|
|
STUB_WEAK(ZSTD_trace_compress_end)
|
|
STUB_WEAK(ZSTD_trace_decompress_begin)
|
|
STUB_WEAK(ZSTD_trace_decompress_end)
|
|
FILE* __stderrp = stdout;
|
|
|
|
#undef STUB_WEAK
|
|
|
|
// THIS MAKES STD::COUT AND SUCH WORK :)
|
|
#include <iostream>
|
|
std::ios_base::Init init;
|