1 // boost/detail/lightweight_main.hpp -------------------------------------------------//
3 // Copyright Beman Dawes 2010
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
11 //--------------------------------------------------------------------------------------//
13 // exception reporting main() that calls cpp_main() //
15 //--------------------------------------------------------------------------------------//
17 int cpp_main(int argc
, char* argv
[]);
19 int main(int argc
, char* argv
[])
23 return cpp_main(argc
, argv
);
26 catch (const std::exception
& ex
)
29 << "\nERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR\n"
30 << "\n****************************** std::exception *****************************\n"
32 << "\n***************************************************************************\n"