diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
commit | a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6 (patch) | |
tree | bbb1b67428ee22ec495456dc1a6bdd46f8e45236 /cpp/src/Slice/Preprocessor.cpp | |
parent | Bug 2261 - renaming Ice for C# to Ice for .NET (diff) | |
download | ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.bz2 ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.xz ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.zip |
Bug 2540 - trap ctrl-C and unlink output files
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 7a6ee02ada6..d91bb1f069e 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -10,6 +10,7 @@ #include <IceUtil/DisableWarnings.h> #include <Slice/Preprocessor.h> #include <Slice/Util.h> +#include <Slice/SignalHandler.h> #include <IceUtil/StringUtil.h> #include <IceUtil/UUID.h> #include <IceUtil/Unicode.h> @@ -148,6 +149,7 @@ Slice::Preprocessor::preprocess(bool keepComments) char* buf = mcpp_get_mem_buffer(Out); _cppFile = ".preprocess." + IceUtil::generateUUID(); + SignalHandler::addFile(_cppFile); #ifdef _WIN32 _cppHandle = ::_wfopen(IceUtil::stringToWstring(_cppFile).c_str(), IceUtil::stringToWstring("w+").c_str()); #else |