diff options
author | Michi Henning <michi@zeroc.com> | 2005-06-17 05:55:25 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-06-17 05:55:25 +0000 |
commit | ee432c6e4507c1311de6660a08a1d50bf28fb19a (patch) | |
tree | d771d346991e6c45ae6eafd252e02a8f9d2521c5 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | Added static build (diff) | |
download | ice-ee432c6e4507c1311de6660a08a1d50bf28fb19a.tar.bz2 ice-ee432c6e4507c1311de6660a08a1d50bf28fb19a.tar.xz ice-ee432c6e4507c1311de6660a08a1d50bf28fb19a.zip |
Added on-shot constructors to structures, classes, and exceptions. Added
copy and assignment to classes. Refactored some of the code generator
to get rid of duplicated code.
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index adf24fd7267..d1f1b0b52c5 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -903,3 +903,15 @@ Slice::writeStreamUnmarshalCode(Output& out, const list<pair<TypePtr, string> >& writeStreamMarshalUnmarshalCode(out, ret, "__ret", false, ""); } } + +void +Slice::writeUndefines(Output& out, const vector<string>& symbols) +{ + out.zeroIndent(); + out << sp; + for(vector<string>::const_iterator i = symbols.begin(); i != symbols.end(); ++i) + { + out << nl << "#undef " << *i; + } + out.restoreIndent(); +} |