forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (23 loc) · 735 Bytes
/
main.cpp
File metadata and controls
31 lines (23 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/
#include "cefpython_app.h"
#if defined(OS_WIN)
#include <windows.h>
int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
CefMainArgs mainArgs(hInstance);
#else // Mac, Linux
int main(int argc, char **argv)
{
CefMainArgs mainArgs(argc, argv);
#endif
CefRefPtr<CefPythonApp> app(new CefPythonApp);
int exitCode = CefExecuteProcess(mainArgs, app.get(), NULL);
return exitCode;
}