MCPcopy Create free account
hub / github.com/WinMerge/winmerge / LoadPluginWrapper

Function LoadPluginWrapper

Src/Plugins.cpp:726–738  ·  view source on GitHub ↗

* @brief Guard call to LoadPlugin with Windows SEH to trap GPFs * * @return same as LoadPlugin (1=has event, 0=doesn't have event, errors are negative) */

Source from the content-addressed store, hash-verified

724 * @return same as LoadPlugin (1=has event, 0=doesn't have event, errors are negative)
725 */
726static int LoadPluginWrapper(PluginInfo & plugin, const String & scriptletFilepath)
727{
728 SE_Handler seh;
729 try
730 {
731 return plugin.LoadPlugin(scriptletFilepath);
732 }
733 catch (SE_Exception& se)
734 {
735 ReportPluginLoadFailure(scriptletFilepath, se);
736 }
737 return false;
738}
739
740/**
741 * @brief Return list of all candidate plugins in module path

Callers 1

GetAvailableScriptsFunction · 0.85

Calls 2

ReportPluginLoadFailureFunction · 0.85
LoadPluginMethod · 0.80

Tested by

no test coverage detected