Fix _wassert signature
@@ -139,12 +139,13 @@ void MakeSolObjectImmutable(sol::object aObj, const sol::state_view& aStateView)
metatable[sol::meta_function::new_index] = []() {};
}
-// runtime assertions which can be enabled/disabled inside CET options
-void ImGuiAssert(wchar_t const* acpMessage, wchar_t const* acpFile, unsigned aLine)
-{
#ifdef NDEBUG
// inline _wassert decl for NDEBUG as it is not emitted inside assert.h header in this case
- _ACRTIMP void __cdecl _wassert(wchar_t const* _Message, wchar_t const* _File, unsigned _Line);
+extern "C" _ACRTIMP void __cdecl _wassert(wchar_t const* _Message, wchar_t const* _File, unsigned _Line);
#endif
+
+// runtime assertions which can be enabled/disabled inside CET options
+void ImGuiAssert(wchar_t const* acpMessage, wchar_t const* acpFile, unsigned aLine)
+{
_wassert(acpMessage, acpFile, aLine);
}
