From dd63548cb136a42961b71d7045fdc8cb9324f73c Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 25 Sep 2026 14:44:11 -0700 Subject: [PATCH] Windows: On unimplemented print a log Makes it easier to find which one was missing. Can't use regular log routines in the header due to conflicting win32 defines. --- Source/Windows/Common/Logging.cpp | 6 ++++++ Source/Windows/Common/Priv.h | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Source/Windows/Common/Logging.cpp b/Source/Windows/Common/Logging.cpp index 8980bda8d..21fbdfd1f 100644 --- a/Source/Windows/Common/Logging.cpp +++ b/Source/Windows/Common/Logging.cpp @@ -32,6 +32,12 @@ static void AssertHandler(const char* Message) { } } // namespace + +namespace FEX::Windows::Logging { +void UnimplementedLog(const char* Func) { + LogMan::Msg::DFmt("Unimplemented Function in: {}", Func); +} +} // namespace FEX::Windows::Logging namespace FEX::Windows::Logging { void Init() { FEX_CONFIG_OPT(SilentLog, SILENTLOG); diff --git a/Source/Windows/Common/Priv.h b/Source/Windows/Common/Priv.h index ea702b400..10341beef 100644 --- a/Source/Windows/Common/Priv.h +++ b/Source/Windows/Common/Priv.h @@ -55,11 +55,15 @@ public: } }; +namespace FEX::Windows::Logging { +void UnimplementedLog(const char* Func); +} -#define UNIMPLEMENTED() \ - do { \ - NtTerminateProcess(NtCurrentProcess(), 0); \ - __fastfail(0); \ +#define UNIMPLEMENTED() \ + do { \ + FEX::Windows::Logging::UnimplementedLog(__func__); \ + NtTerminateProcess(NtCurrentProcess(), 0); \ + __fastfail(0); \ } while (0) #define DLLEXPORT_FUNC(Ret, Name, Args) \