CBMC
goto_inspect_main.cpp
Go to the documentation of this file.
1 // Author: Fotis Koutoulakis for Diffblue Ltd.
2 
3 #ifdef _MSC_VER
4 # include <util/unicode.h>
5 #endif
6 
8 
9 #ifdef _MSC_VER
10 int wmain(int argc, const wchar_t **argv_wide)
11 {
12  auto vec = narrow_argv(argc, argv_wide);
13  auto narrow = to_c_str_array(std::begin(vec), std::end(vec));
14  auto argv = narrow.data();
15 #else
16 int main(int argc, const char **argv)
17 {
18 #endif
19  return goto_inspect_parse_optionst{argc, argv}.main();
20 }
virtual int main()
int main(int argc, const char **argv)
output_type narrow(input_type input)
Run-time checked narrowing cast.
Definition: narrow.h:34
std::vector< std::string > narrow_argv(int argc, const wchar_t **argv_wide)
Definition: unicode.cpp:149
std::vector< const char * > to_c_str_array(It b, It e)
Definition: unicode.h:66