excpt.h 425 B

1234567891011121314151617181920
  1. #ifndef _EXCPT_H
  2. #define _EXCPT_H
  3. #if __GNUC__ >=3
  4. #pragma GCC system_header
  5. #endif
  6. /* FIXME: This will make some code compile. The programs will most
  7. likely crash when an exception is raised, but at least they will
  8. compile. */
  9. #ifdef __GNUC__
  10. #define __try
  11. #define __except(x) if (0) /* don't execute handler */
  12. #define __finally
  13. #define _try __try
  14. #define _except __except
  15. #define _finally __finally
  16. #endif
  17. #endif