diff options
Diffstat (limited to 'py/modules/IcePy/Slice.cpp')
-rw-r--r-- | py/modules/IcePy/Slice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/modules/IcePy/Slice.cpp b/py/modules/IcePy/Slice.cpp index 307b893978b..b0d33bed193 100644 --- a/py/modules/IcePy/Slice.cpp +++ b/py/modules/IcePy/Slice.cpp @@ -68,6 +68,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) opts.addOpt("I", "", IceUtilInternal::Options::NeedArg, "", IceUtilInternal::Options::Repeat); opts.addOpt("d", "debug"); opts.addOpt("", "ice"); + opts.addOpt("", "underscore"); opts.addOpt("", "checksum"); opts.addOpt("", "all"); @@ -97,6 +98,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) Ice::StringSeq includePaths; bool debug = false; bool ice = true; // This must be true so that we can create Ice::Identity when necessary. + bool underscore = opts.isSet("underscore"); bool all = false; bool checksum = false; if(opts.isSet("D")) @@ -142,7 +144,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) return 0; } - UnitPtr u = Slice::Unit::createUnit(ignoreRedefs, all, ice); + UnitPtr u = Slice::Unit::createUnit(ignoreRedefs, all, ice, underscore); int parseStatus = u->parse(file, cppHandle, debug); if(!icecpp->close() || parseStatus == EXIT_FAILURE) |