From 5d931612485f969f6bec86124efc9378e257e161 Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Tue, 6 Sep 2011 16:45:47 +0200 Subject: [PATCH] C++: Add __try, __except, and __finally to configuration This is not really a direct mapping to the Microsoft specifc ones, but I guess defining such macros is an acceptable solution. Change-Id: I17a9414364ef664f2e8afa7ececc6a87f663049e Reviewed-on: http://codereview.qt.nokia.com/4277 Reviewed-by: Qt Sanity Bot Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cppmodelmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 274d3e236a..aae798491e 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -165,7 +165,10 @@ static const char pp_configuration[] = "#define __RPC_FAR\n" "#define APIENTRY\n" "#define __declspec(a)\n" - "#define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method\n"; + "#define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method\n" + "#define __try try\n" + "#define __except catch\n" + "#define __finally\n"; #ifndef ICHECK_BUILD CppPreprocessor::CppPreprocessor(QPointer modelManager) -- GitLab