except.h

来自「这是一本学习 window编程的很好的参考教材」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef _except_h_
#define _except_h_

#ifndef W2K_ONLY
#pragma warning( disable : 4102 ) /*  suppress "unreferenced label" message */

/** The MSDN says nothing about __leave in try-except, but the compiler accepts it.
 * This is how it is done in GCC (http://reactos.wox.org/index.php?page=gccseh):
 * __leave // Jump to closing brace of try block.
 * And so do we, jump to beginning of __except() and __finally.
 */
#define __except(filter)	___finally: if(0)	//not supported: never execute this block
#define __try									//always execute, nothing needed
#define __finally			___finally:			//label for the "finally" block
#define __leave				{goto ___finally;}	//Jump to that label

#endif

#endif // _except_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?