Go to the documentation of this file. 18 #ifndef INCLUDED_UHD_UTILS_SAFE_MAIN_HPP 19 #define INCLUDED_UHD_UTILS_SAFE_MAIN_HPP 32 #define UHD_SAFE_MAIN(_argc, _argv) _main(int, char*[]); \ 33 int main(int argc, char *argv[]){ \ 35 return _main(argc, argv); \ 36 } catch(const std::exception &e) { \ 37 std::cerr << "Error: " << e.what() << std::endl; \ 39 std::cerr << "Error: unknown exception" << std::endl; \ 42 } int _main(_argc, _argv)