C(不是C ++)的异常库 [英] Exception libraries for C (not C++)

查看:160
本文介绍了C(不是C ++)的异常库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



到目前为止,我一直在看David Hanson的:
http://drhanson.net/work/



但是我知道我曾经看过过其他的。你可以给我一些额外的指针吗?



谢谢,



SetJmp

解决方案

这里是一个,与C89兼容,并实现try / catch / finally模式,可以在其他OO语言中找到。


I am rolling my own exception library for C and would like good examples to examine.

So far, I have been looking at David Hanson's: http://drhanson.net/work/

But I know I've seen other ones available in the past. Can you send me some additional pointers?

Thanks,

SetJmp

解决方案

Here is one, compatible with C89 and implementing the try/catch/finally schema as can be found in other OO languages.

这篇关于C(不是C ++)的异常库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆