root/lang/objective-cplusplus/i3/trunk/src/Main.cpp @ 36182

Revision 36182, 0.9 kB (checked in by saturday06, 3 years ago)

asdfadf

Line 
1#include <PrecompiledHeaders.h>
2#include "Common.h"
3#include "InputWindow.h"
4#include "OutputWindow.h"
5#include "CompletionWindow.h"
6#include "Delegate.h"
7#include "ShellManager.h"
8
9#include "Mediator.h"
10
11int start(int argc, char** argv) {
12    using namespace std;
13    using namespace boost;
14    using namespace mil;
15    using namespace i3;
16   
17    exit_status exit_status;
18   
19    if ((exit_status = init_common_global_data(argc, argv)) ||
20        (exit_status = init_os_global_data(argc, argv)) ||
21        (exit_status = init_gui_global_data(argc, argv))) {
22        return exit_status.code;
23    }
24
25    {
26        i3::Mediator mediator;
27        exit_status = mediator.start();
28        if (exit_status) {
29            return exit_status.code;
30        }
31    }
32
33    return EXIT_SUCCESS;
34}
35
36int main(int argc, char** argv) {
37    return filter_exception_and_start(argc, argv, start);
38}
39
Note: See TracBrowser for help on using the browser.