summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-10-09 00:23:23 +0200
committerJose <jose@zeroc.com>2012-10-09 00:23:23 +0200
commit0ea1030bc45670c3b8af94e1076311cd09e26f8b (patch)
tree654a12b566a805ca896028fa308ffe6f11eac84f /cpp/src/Slice/Preprocessor.cpp
parentFix GraphView AVG lifetime calculation (diff)
downloadice-0ea1030bc45670c3b8af94e1076311cd09e26f8b.tar.bz2
ice-0ea1030bc45670c3b8af94e1076311cd09e26f8b.tar.xz
ice-0ea1030bc45670c3b8af94e1076311cd09e26f8b.zip
ICE-4375 - Ice preprocessor macro for .ice files
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index bb1b3c35c94..359885e0a7d 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -154,8 +154,10 @@ Slice::Preprocessor::preprocess(bool keepComments)
}
args.push_back("-e");
args.push_back("en_us.utf8");
+ ostringstream version;
+ version << "-DICE_VERSION=" << ICE_INT_VERSION;
+ args.push_back(version.str());
args.push_back(_fileName);
-
const char** argv = new const char*[args.size() + 1];
argv[0] = "mcpp";
for(unsigned int i = 0; i < args.size(); ++i)