From 47739cb322dc79a40d8ff0d375e9a40cc2337b52 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 24 Oct 2020 12:58:02 -0700 Subject: [PATCH] Filled in Win32 assert stubs. --- src/musikcube/cursespp/Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/musikcube/cursespp/Window.cpp b/src/musikcube/cursespp/Window.cpp index 5098caeb3..6ab7b0c65 100755 --- a/src/musikcube/cursespp/Window.cpp +++ b/src/musikcube/cursespp/Window.cpp @@ -70,7 +70,8 @@ static std::shared_ptr keys; #if DEBUG #define ASSERT_MAIN_THREAD() #else - /* CAL TODO */ + static DWORD mainThreadId = GetCurrentThreadId(); + #define ASSERT_MAIN_THREAD() assert(GetCurrentThreadId() == mainThreadId); #endif #endif