Mercurial > dwindows
diff win/dw.c @ 1861:c836603d3f14
Add dw_shutdown() function which does the same thing as dw_exit() ...
except it doesn't actually end the process. Useful for bindings
that are expecting to do their own cleanup after the script exits.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 01 Mar 2013 16:51:08 +0000 |
parents | 952a41463240 |
children | dc3260e1a915 |
line wrap: on
line diff
--- a/win/dw.c Fri Mar 01 13:01:59 2013 +0000 +++ b/win/dw.c Fri Mar 01 16:51:08 2013 +0000 @@ -11331,10 +11331,8 @@ /* * Cleanly terminates a DW session, should be signal handler safe. - * Parameters: - * exitcode: Exit code reported to the operating system. - */ -void API dw_exit(int exitcode) + */ +void API dw_shutdown(void) { OleUninitialize(); #ifdef AEROGLASS @@ -11343,6 +11341,16 @@ #endif FreeLibrary(huxtheme); DestroyWindow(hwndTooltip); +} + +/* + * Cleanly terminates a DW session, should be signal handler safe. + * Parameters: + * exitcode: Exit code reported to the operating system. + */ +void API dw_exit(int exitcode) +{ + dw_shutdown(); exit(exitcode); }