diff options
author | Jose <jose@zeroc.com> | 2012-10-09 00:23:23 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-10-09 00:23:23 +0200 |
commit | 0ea1030bc45670c3b8af94e1076311cd09e26f8b (patch) | |
tree | 654a12b566a805ca896028fa308ffe6f11eac84f /cpp/src/Slice/Preprocessor.cpp | |
parent | Fix GraphView AVG lifetime calculation (diff) | |
download | ice-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.cpp | 4 |
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) |