From f14090974aa8af86aa22bf298e0e4f6c6ba1f42b Mon Sep 17 00:00:00 2001 From: "R. Blaine Whittle" Date: Fri, 5 May 2017 18:29:18 -0700 Subject: [PATCH] Added masm handling of seh exception handling for VS2010 and above --- src/actions/vstudio/vs2010_vcxproj.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index c0cc3614..ab56380d 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -787,7 +787,8 @@ emitFiles = function(prj, group) local fileCfgFunc = { - m.excludedFromBuild + m.excludedFromBuild, + m.exceptionHandlingSEH, } m.emitFiles(prj, group, "Masm", nil, fileCfgFunc, function(cfg) @@ -1339,6 +1340,13 @@ end + function m.exceptionHandlingSEH(filecfg, condition) + if not filecfg or filecfg.project.exceptionhandling == "SEH" then + m.element("UseSafeExceptionHandlers", condition, "true") + end + end + + function m.extensionsToDeleteOnClean(cfg) if #cfg.cleanextensions > 0 then local value = table.implode(cfg.cleanextensions, "*", ";", "")