slic/src
diff -u -r1.4 -r1.5
--- SlicMain.cc 11 Feb 2011 23:46:54 -0000 1.4
+++ SlicMain.cc 9 Jun 2011 01:51:51 -0000 1.5
@@ -1,4 +1,4 @@
-// $Id: SlicMain.cc,v 1.4 2011/02/11 23:46:54 jeremy Exp $
+// $Id: SlicMain.cc,v 1.5 2011/06/09 01:51:51 jeremy Exp $
#include "SlicMain.hh"
@@ -13,7 +13,7 @@
{
SlicMain::SlicMain()
- : Module( "SlicMain" )
+ : Module("SlicMain")
{;}
SlicMain::~SlicMain()
@@ -27,8 +27,10 @@
SlicApplication* slicApp = 0;
// Top-level try block.
+#ifdef SLIC_CATCH_STD_EXCEPTIONS
try
{
+#endif
// Create the SLIC application using singleton function.
slicApp = SlicApplication::instance();
@@ -40,6 +42,8 @@
// Get the application return code.
returnCode = slicApp->getReturnCode();
+
+#ifdef SLIC_CATCH_STD_EXCEPTIONS
}
// Catch an std::exception.
catch(std::exception& stde)
@@ -51,8 +55,9 @@
{
log() << LOG::error << "Top-level catch caught unknown exception!" << LOG::done;
}
+#endif
- if ( slicApp )
+ if (slicApp)
{
delete slicApp;
}