summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 7ba4f20251e..97424a0a715 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -174,9 +174,10 @@ Slice::Gen::generate(const UnitPtr& p)
FileTracker::instance()->addFile(fileC);
printHeader(H);
+ printGeneratedHeader(H, _base + ".ice");
printHeader(C);
- H << "\n// Generated from file `" << _base << ".ice'\n";
- C << "\n// Generated from file `" << _base << ".ice'\n";
+ printGeneratedHeader(C, _base + ".ice");
+
string s = fileH;
if(_include.size())
@@ -194,9 +195,9 @@ Slice::Gen::generate(const UnitPtr& p)
if(_dllExport.size())
{
- C << "\n#ifndef " << _dllExport << "_EXPORTS";
- C << "\n# define " << _dllExport << "_EXPORTS";
- C << "\n#endif";
+ C << "\n#ifndef " << _dllExport << "_EXPORTS";
+ C << "\n# define " << _dllExport << "_EXPORTS";
+ C << "\n#endif";
}
C << "\n#include <";