include: Discourage use of 'break' or 'continue' inside __TRY/__EXCEPT.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-12-13 23:23:28 -07:00 committed by Alexandre Julliard
parent 5e93a74478
commit 224d284f99
1 changed files with 6 additions and 4 deletions

View File

@ -61,10 +61,12 @@ extern "C" {
* use GetExceptionInformation() and GetExceptionCode() to retrieve the
* exception info.
*
* Warning: inside a __TRY or __EXCEPT block, 'break' or 'continue' statements
* break out of the current block. You cannot use 'return', 'goto'
* or 'longjmp' to leave a __TRY block, as this will surely crash.
* You can use them to leave a __EXCEPT block though.
* Warning: Inside a __TRY or __EXCEPT block, 'break' or 'continue' statements
* break out of the current block, but avoid using them because they
* won't work when compiling with native exceptions. You cannot use
* 'return', 'goto', or 'longjmp' to leave a __TRY block either, as
* this will surely crash. You can use 'return', 'goto', or 'longjmp'
* to leave an __EXCEPT block though.
*
* -- AJ
*/