diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-12-26 15:16:24 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-12-26 15:16:24 -0800 |
commit | 899c375da6787c33073997eb3722342a0cc971f3 (patch) | |
tree | 9f369f06baa9634c88f6c646e9f399ab44d49657 /cpp/src/Slice/PythonUtil.cpp | |
parent | OS X installer updates (diff) | |
download | ice-899c375da6787c33073997eb3722342a0cc971f3.tar.bz2 ice-899c375da6787c33073997eb3722342a0cc971f3.tar.xz ice-899c375da6787c33073997eb3722342a0cc971f3.zip |
compact ID support for scripting languages
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index a9efb9c9e63..de9f2bc15ab 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -793,7 +793,8 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } DataMemberList members = p->dataMembers(); - _out << sp << nl << "_M_" << type << " = IcePy.defineClass('" << scoped << "', " << name << ", "; + _out << sp << nl << "_M_" << type << " = IcePy.defineClass('" << scoped << "', " << name << ", " << p->compactId() + << ", "; writeMetaData(p->getMetaData()); const bool preserved = p->hasMetaData("preserve-slice") || p->inheritsMetaData("preserve-slice"); _out << ", " << (isAbstract ? "True" : "False") << ", " << (preserved ? "True" : "False") << ", "; |