| |
1 |
1 |
|
| |
2 |
2 |
|
| |
3 |
3 |
#if defined(_WIN32) || defined(_WIN64) |
| |
4 |
4 |
#include <windows.h> |
| |
5 |
5 |
#endif |
| |
6 |
6 |
|
| |
7 |
7 |
#include <conio.h> |
| |
8 |
8 |
#include "gen_types.h" |
| |
9 |
9 |
#include "config-test.h" |
| |
10 |
10 |
#include "exception.h" |
| |
11 |
11 |
|
| |
12 |
12 |
#if defined(_WIN32) || defined(_WIN64) |
| |
13 |
|
int_t _tmain(int_t argc, tchar_t* argv[]) |
| |
|
13 |
int_t _tmain(int_t , tchar_t* []) |
| |
14 |
14 |
#else |
| |
15 |
|
int main(int argc, char_t* argv[]) |
| |
|
15 |
int main(int , char_t* []) |
| |
16 |
16 |
#endif |
| |
17 |
17 |
{ |
| |
18 |
18 |
ConfigTest ct; |
| |
19 |
19 |
|
| |
20 |
20 |
try |
| |
21 |
21 |
{ |
| |
22 |
22 |
ct.Run(); |
| |
23 |
23 |
} |
| |
24 |
24 |
catch(icpf::exception& e) |
| |
25 |
25 |
{ |
| |
26 |
26 |
tchar_t szData[4096]; |
| |
27 |
27 |
e.get_info(szData, 4096); |
| |
28 |
28 |
_tprintf(TSTRFMT, szData); |
| |
29 |
29 |
} |
| |
30 |
30 |
|
| |
31 |
31 |
_getch(); |
| |
32 |
32 |
return 0; |
| |
33 |
33 |
} |