Line data Source code
1 : /*
2 : * License:
3 : * Copyright (c) 2006-2019 Made to Order Software Corp. All Rights Reserved
4 : *
5 : * https://snapwebsites.org/
6 : * contact@m2osw.com
7 : *
8 : * This program is free software; you can redistribute it and/or modify
9 : * it under the terms of the GNU General Public License as published by
10 : * the Free Software Foundation; either version 2 of the License, or
11 : * (at your option) any later version.
12 : *
13 : * This program is distributed in the hope that it will be useful,
14 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 : * GNU General Public License for more details.
17 : *
18 : * You should have received a copy of the GNU General Public License along
19 : * with this program; if not, write to the Free Software Foundation, Inc.,
20 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 : *
22 : * Authors:
23 : * Alexis Wilke alexis@m2osw.com
24 : */
25 :
26 : // Tell catch we want it to add the runner code in this file.
27 : #define CATCH_CONFIG_RUNNER
28 :
29 : // self
30 : //
31 : #include "main.h"
32 :
33 :
34 : // snaplogger lib
35 : //
36 : #include <snaplogger/version.h>
37 :
38 :
39 : // libexcept lib
40 : //
41 : #include <libexcept/exception.h>
42 :
43 :
44 : // C++ lib
45 : //
46 : #include <sstream>
47 :
48 :
49 :
50 :
51 :
52 2 : int main(int argc, char * argv[])
53 : {
54 4 : return SNAP_CATCH2_NAMESPACE::snap_catch2_main(
55 : "snaplogger"
56 : , SNAPLOGGER_VERSION_STRING
57 : , argc
58 : , argv
59 6 : , []() { libexcept::set_collect_stack(false); }
60 2 : );
61 6 : }
62 :
63 :
64 : // vim: ts=4 sw=4 et
|