diff options
author | Jose <jose@zeroc.com> | 2016-07-07 11:49:14 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-07-07 11:49:14 +0200 |
commit | b3a329dc11fed649d2871ec30cc831ac1122f045 (patch) | |
tree | 6b2db98e1d2d0c07591a4c4b5e354b30e9b6113d /cpp/src/slice2cs/Main.cpp | |
parent | Fixed bug where marshalling of optional object dictionaries as parameters wou... (diff) | |
download | ice-b3a329dc11fed649d2871ec30cc831ac1122f045.tar.bz2 ice-b3a329dc11fed649d2871ec30cc831ac1122f045.tar.xz ice-b3a329dc11fed649d2871ec30cc831ac1122f045.zip |
Update C# mapping with async/await
Diffstat (limited to 'cpp/src/slice2cs/Main.cpp')
-rw-r--r-- | cpp/src/slice2cs/Main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/slice2cs/Main.cpp b/cpp/src/slice2cs/Main.cpp index 5850c2cb640..c09fc9d0d54 100644 --- a/cpp/src/slice2cs/Main.cpp +++ b/cpp/src/slice2cs/Main.cpp @@ -78,6 +78,7 @@ usage(const char* n) "--ice Allow reserved Ice prefix in Slice identifiers.\n" "--underscore Allow underscores in Slice identifiers.\n" "--checksum Generate checksums for Slice definitions.\n" + "--compat Generate compatibility code to support depreacted features.\n" ; } @@ -103,6 +104,7 @@ compile(int argc, char* argv[]) opts.addOpt("", "ice"); opts.addOpt("", "underscore"); opts.addOpt("", "checksum"); + opts.addOpt("", "compat"); bool validate = false; for(int i = 0; i < argc; ++i) @@ -184,6 +186,8 @@ compile(int argc, char* argv[]) bool checksum = opts.isSet("checksum"); + bool compat = opts.isSet("compat"); + if(args.empty()) { getErrorStream() << argv[0] << ": error: no input file" << endl; @@ -318,7 +322,7 @@ compile(int argc, char* argv[]) { try { - Gen gen(icecpp->getBaseName(), includePaths, output, impl, implTie); + Gen gen(icecpp->getBaseName(), includePaths, output, impl, implTie, compat); gen.generate(p); if(tie) { |