1
2
3
4
5
6 using System;
7 using System.Windows;
8
9 public void WindowsAssertionFailureFunction(const char* assertion, const char* function, const char* sourceFilePath, int lineNumber)
10 {
11 string assertionFailureStr = "assertion ";
12 assertionFailureStr.Append(assertion).Append(" failed at ").Append(function).Append(" ").Append(sourceFilePath).Append(":").Append(System.ToString(lineNumber));
13 MessageBox.Show(assertionFailureStr, "Error", null, cast<MessageBoxType>(MessageBoxType.MB_OK | MessageBoxType.MB_ICONSTOP));
14 RtExit(253);
15 }