Commit 5d931612 authored by Leandro Melo's avatar Leandro Melo Committed by Leandro T. C. Melo
Browse files

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-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarErik Verbruggen <>
parent b144de97
......@@ -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";
CppPreprocessor::CppPreprocessor(QPointer<CppModelManager> modelManager)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment