Skip to content

Commit

Permalink
higher level exception handling on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jriegel committed Feb 20, 2014
1 parent 2a4e8ba commit 565fb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -515,8 +515,8 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)

IF(MSVC)
# set default compiler settings
#SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GF /GY")
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG")
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa")
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /EHa")
# set default libs
SET (CMAKE_C_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ")
set (CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}")
Expand Down
2 changes: 1 addition & 1 deletion src/App/Application.cpp
Expand Up @@ -984,7 +984,7 @@ void Application::init(int argc, char ** argv)
std::signal(SIGABRT,segmentation_fault_handler);
std::set_terminate(my_terminate_handler);
std::set_unexpected(unexpection_error_handler);
_set_se_translator(my_trans_func);
// _set_se_translator(my_trans_func);
#endif

initTypes();
Expand Down

0 comments on commit 565fb8c

Please sign in to comment.