diff options
author | Brad King <brad.king@kitware.com> | 2003-12-30 21:23:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-12-30 21:23:16 (GMT) |
commit | 1c8f885f9dc2fe73dcc3651eaead86d566030c2b (patch) | |
tree | a4012d7690af6d19ffed617e02acf8367b027a2f /Source/kwsys/Process.h.in | |
parent | f48941f261bee3a6ae49fdc9cda177908ba76af6 (diff) | |
download | CMake-1c8f885f9dc2fe73dcc3651eaead86d566030c2b.zip CMake-1c8f885f9dc2fe73dcc3651eaead86d566030c2b.tar.gz CMake-1c8f885f9dc2fe73dcc3651eaead86d566030c2b.tar.bz2 |
ENH: Added GetExceptionString method to provide an error description when GetState returns Exception.
Diffstat (limited to 'Source/kwsys/Process.h.in')
-rw-r--r-- | Source/kwsys/Process.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/Process.h.in b/Source/kwsys/Process.h.in index 83e3060..001b853 100644 --- a/Source/kwsys/Process.h.in +++ b/Source/kwsys/Process.h.in @@ -56,6 +56,7 @@ #define kwsysProcess_GetExitCode kwsys(Process_GetExitCode) #define kwsysProcess_GetExitValue kwsys(Process_GetExitValue) #define kwsysProcess_GetErrorString kwsys(Process_GetErrorString) +#define kwsysProcess_GetExceptionString kwsys(Process_GetExceptionString) #define kwsysProcess_Execute kwsys(Process_Execute) #define kwsysProcess_WaitForData kwsys(Process_WaitForData) #define kwsysProcess_Pipes_e kwsys(Process_Pipes_e) @@ -225,6 +226,12 @@ kwsysEXPORT int kwsysProcess_GetExitValue(kwsysProcess* cp); kwsysEXPORT const char* kwsysProcess_GetErrorString(kwsysProcess* cp); /** + * When GetState returns "Exception", this method returns a string + * describing the problem. Otherwise, it returns NULL. + */ +kwsysEXPORT const char* kwsysProcess_GetExceptionString(kwsysProcess* cp); + +/** * Start executing the child process. */ kwsysEXPORT void kwsysProcess_Execute(kwsysProcess* cp); @@ -335,6 +342,7 @@ kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp); # undef kwsysProcess_GetExitCode # undef kwsysProcess_GetExitValue # undef kwsysProcess_GetErrorString +# undef kwsysProcess_GetExceptionString # undef kwsysProcess_Execute # undef kwsysProcess_WaitForData # undef kwsysProcess_Pipes_e |