异常处理在C,无C ++在Linux中 [英] Exception Handling in C without C++ in Linux
问题描述
是否提供Linux的C中的异常处理而不诉诸C ++?或者,可能是什么来实现这样一个异常处理的最佳方式?我们的目标是避免检查返回codeS为每个调用的函数,但是做这样的事情在C ++中是线程安全的,易于携带。
Does Linux provide an exception handling in C without resorting to C++? Or, what might be the best way to implement such an exception handling? The goal is to avoid to check return codes for every function called, but do something like in C++ that is thread safe and easily portable.
推荐答案
我从来没有听说过的Linux提供了这样的事情,但这个页面描述了一个第三方的异常处理库为C:的 http://www.on-time.com/ddj0011.htm 我一直没能找到下载链接虽然
I've never heard of Linux providing anything like that, but this page describes a third-party exception handling library for C: http://www.on-time.com/ddj0011.htm I haven't been able to find the download link, though.
这篇关于异常处理在C,无C ++在Linux中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!