kokoye2007 / waitzar

Automatically exported from code.google.com/p/waitzar
Other
0 stars 1 forks source link

Remove old Windows flow control (__try, __leave) #183

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The only place that __try, __leave and __finally are used is in the IsAdmin() 
function. This needs to be replaced either with "goto", or with some other kind 
of "get out of the loop" code. 

Original issue reported on code.google.com by seth.h...@gmail.com on 13 Jan 2011 at 6:08

GoogleCodeExporter commented 9 years ago
Fixed. Used do-while-false. I then looked up this construct and realized that 
lots of coders rage against it and hate it oh so much. Too bad; it's an elegant 
solution in this case. I'm keeping it.

Original comment by seth.h...@gmail.com on 13 Jan 2011 at 6:28