Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #include "clasp_app.h"
00022 
00024 
00025 #if defined (_MSC_VER) && defined(CHECK_HEAP) && _MSC_VER >= 1200
00026 #include <crtdbg.h>
00027 #endif
00028 int main(int argc, char** argv) {
00029 #if defined (_MSC_VER) && defined (CHECK_HEAP) && _MSC_VER >= 1200 
00030         _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) |
00031                                         _CRTDBG_LEAK_CHECK_DF | _CRTDBG_ALLOC_MEM_DF |
00032         _CRTDBG_CHECK_ALWAYS_DF);
00033 
00034         _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE );
00035         _CrtSetReportFile( _CRT_WARN, _CRTDBG_FILE_STDERR );
00036         _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE );
00037         _CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR );
00038         _CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
00039         _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
00040 #endif
00041         Clasp::Cli::ClaspApp app;
00042         return app.main(argc, argv);
00043 }