Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUtil.h

Issue 6032593782833152: Issue 1173 - proposal for entry point (Closed)
Patch Set: Created Jan. 13, 2015, 11:40 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUtil.h
diff --git a/src/plugin/PluginUtil.h b/src/plugin/PluginUtil.h
index ee8cf05ca5ebd5a7a5df0713cd13939d34e087bd..19630f0459ac63f9b24de41a5028eed039a088c8 100644
--- a/src/plugin/PluginUtil.h
+++ b/src/plugin/PluginUtil.h
@@ -1,7 +1,13 @@
#pragma once
#include <string>
+#include <functional>
std::wstring HtmlFolderPath();
std::wstring UserSettingsFileUrl();
std::wstring FirstRunPageFileUrl();
std::wstring FileUrl(const std::wstring& url);
+
+// Wraps EntryPoint and eats C++ exceptions.
+// Returns `false` if caught exception.
+bool EntryPoint(const std::function<void()>& functionBody);
+HRESULT EntryPointWithHResult(const std::function<HRESULT()>& functionBody);
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld