unwind.h 625 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <contrib/libs/libunwind/include/unwind.h>
  3. #define DECLARE_PERSONALITY_FUNCTION(name) \
  4. _Unwind_Reason_Code name(int version,\
  5. _Unwind_Action actions,\
  6. uint64_t exceptionClass,\
  7. struct _Unwind_Exception *exceptionObject,\
  8. struct _Unwind_Context *context);
  9. #define BEGIN_PERSONALITY_FUNCTION(name) \
  10. _Unwind_Reason_Code name(int version,\
  11. _Unwind_Action actions,\
  12. uint64_t exceptionClass,\
  13. struct _Unwind_Exception *exceptionObject,\
  14. struct _Unwind_Context *context)\
  15. {
  16. #define CALL_PERSONALITY_FUNCTION(name) name(version, actions, exceptionClass, exceptionObject, context)