summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
authorleo2005-10-23 00:35:25 +0000
committerleo2005-10-23 00:35:25 +0000
commit02cd88bb158b7a6d66ff2a662223121ecfcddbe0 (patch)
treea8d79fc1c24bef624a29e9eb3e999c5a66377d5c /win/System.cpp
parentf1264b9f8b6266a1153e77d8e497d58e2aad2509 (diff)
Added a new rotate camera interface,
Added an assert macro, Added support for multiple keywords to the pieces tree. git-svn-id: http://svn.leocad.org/trunk@431 c7d43263-9d01-0410-8a33-9dba5d9f93d6
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;