Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv13388/simplewrap
Modified Files:
main.cpp
Log Message:
return code propagation
Index: main.cpp
===================================================================
RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/main.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** main.cpp 1 May 2007 19:40:16 -0000 1.28
--- main.cpp 13 May 2007 19:58:57 -0000 1.29
***************
*** 96,99 ****
--- 96,100 ----
man.setUseConsole(false);
man.setPreferDLL(globalResMan->getBooleanProperty("skel_SingleProcess"));
+ int retvalue = 0;
if (man.run() == false)
***************
*** 107,110 ****
--- 108,115 ----
}
}
+ else
+ {
+ retvalue = man.getExitCode();
+ }
DEBUG("NORMAL EXIT");
***************
*** 112,116 ****
/* The program return-value is 0 - The value that PostQuitMessage() gave */
! return 0;
}
--- 117,121 ----
/* The program return-value is 0 - The value that PostQuitMessage() gave */
! return retvalue;
}
|