summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index ab509811d30..4c09c3bec68 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -1064,6 +1064,22 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
}
out << eb;
+ out << sp;
+ out << nl;
+ if(base)
+ {
+ out << "override ";
+ }
+ out << "public func ice_preMarshal() {}";
+
+ out << sp;
+ out << nl;
+ if(base)
+ {
+ out << "override ";
+ }
+ out << "public func ice_postUnmarshal() {}";
+
return true;
}