summaryrefslogtreecommitdiff
path: root/project2/ice/slice2Rows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/ice/slice2Rows.cpp')
-rw-r--r--project2/ice/slice2Rows.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/project2/ice/slice2Rows.cpp b/project2/ice/slice2Rows.cpp
index cea2d6b..10d319e 100644
--- a/project2/ice/slice2Rows.cpp
+++ b/project2/ice/slice2Rows.cpp
@@ -20,6 +20,8 @@ Slice2Rows::visitModuleStart(const Slice::ModulePtr & m)
bool
Slice2Rows::visitClassDefStart(const Slice::ClassDefPtr & c)
{
+ if (c->operations().empty()) return false;
+
interface = c->name();
fprintf(code, "\t\tnamespace %s {\n", c->name().c_str());
return true;