main.cpp
Go to the documentation of this file.
00001 // 
00002 // Copyright (c) 2006-2007, Benjamin Kaufmann
00003 // 
00004 // This file is part of Clasp. See http://www.cs.uni-potsdam.de/clasp/ 
00005 // 
00006 // Clasp is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 2 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // Clasp is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU General Public License
00017 // along with Clasp; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 //
00020 #include "clasp_app.h"
00022 // main - entry point
00024 // #define CHECK_HEAP
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 }


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:39