diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-06-22 11:38:11 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-06-22 11:38:11 -0400 |
commit | 61a42ff84523287fccd5a1ba46824fc5b013e397 (patch) | |
tree | cd948a2b6bd363896656f4478de1efd2d7700951 /cpp/src/slice2cpp/Gen.cpp | |
parent | Bug 2265. (diff) | |
download | ice-61a42ff84523287fccd5a1ba46824fc5b013e397.tar.bz2 ice-61a42ff84523287fccd5a1ba46824fc5b013e397.tar.xz ice-61a42ff84523287fccd5a1ba46824fc5b013e397.zip |
Generated code now exports proxy vtable on Sun/CC
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index ec7b3e7d23e..03d12816e44 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1763,6 +1763,16 @@ Slice::Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) H << nl << "public:"; H.inc(); + if(_dllExport != "") + { + // + // To export the virtual table + // + C << nl << "#ifdef __SUNPRO_CC"; + C << nl << "class " << _dllExport << "IceProxy" << scoped << ";"; + C << nl << "#endif"; + } + return true; } |