~vanvugt/mir/pageflip-timings

« back to all changes in this revision

Viewing changes to examples/minimal_server.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2014-11-13 15:24:33 UTC
  • mfrom: (2050.2.1 mir1)
  • Revision ID: tarmac-20141113152433-8zqkneo2cvo9wzsb
examples: fix the examples so that --help works again.

Approved by PS Jenkins bot, Chris Halse Rogers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include "mir/server.h"
 
20
#include "mir/report_exception.h"
20
21
 
21
22
#include <cstdlib>
22
23
 
23
24
int main(int argc, char const* argv[])
 
25
try
24
26
{
25
27
    mir::Server server;
26
28
    server.set_command_line(argc, argv);
28
30
    server.run();
29
31
    return server.exited_normally() ? EXIT_SUCCESS : EXIT_FAILURE;
30
32
}
 
33
catch (...)
 
34
{
 
35
    mir::report_exception();
 
36
    return EXIT_FAILURE;
 
37
}