summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/win/System.cpp b/win/System.cpp
index e60bad4..f8a1780 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -31,6 +31,21 @@
#include "cadbar.h"
#include "mainfrm.h"
+bool lcAssert(const char* FileName, int Line, const char* Expression, const char* Description)
+{
+ char buf[1024];
+ sprintf(buf, "Assertion failed on line %d of file %s: %s", Line, FileName, Description);
+ AfxMessageBox(buf, MB_OK|MB_ICONSTOP);
+
+ // TODO: Add a real assert dialog instead of the message box.
+ // TODO: Add an option to disable all asserts.
+ // TODO: Add an option to disable only this assert.
+ // TODO: Add an option to break into the debugger.
+
+ return false;
+}
+
+
static CMenu menuPopups;
static CStepDlg* StepModeless = NULL;
static UINT ClipboardFormat = 0;