detect invalid handle
检测无效句柄
以上为机器翻译结果,长、整句建议使用 人工翻译 。
When you detect an error or invalid state in a function, what's the best way to handle it?
优雅的退出 当你在函数中检测到一个错误或者无效状态时,最好的处理方式是什么呢? 返回一个错误代号(error code),抛出一个异常还是调用assert()?
youdao
应用推荐
模块上移
模块下移
不移动