File: main.cc

package info (click to toggle)
sms-pl 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 376 kB
  • ctags: 355
  • sloc: cpp: 2,618; perl: 109; makefile: 103; sh: 26
file content (27 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
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
#include <iostream>
#include "app.h"
#include "debug.h"
#include "mr_curl/mr_curl.h"

using namespace std;

int main(int argc, char **argv)
{
	CurlGlobal curl;
	int ret;
	
	try {
		App app(argc, argv);
		ret = app.Run();
	}
	catch (Exception &e) {
		cerr << "Unhandled exception in main: " << e << endl;
		ret = 1;
	}
	catch (...) {
		cerr << "Unknown exception in main" << endl;
		ret = 1;
	}
	
	return ret;
}