Skip to content

Commit

Permalink
Export personality functions in DLL.
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Mar 5, 2021
1 parent 0759f6a commit 9bd047a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eh_personality.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,19 @@ static inline _Unwind_Reason_Code internal_objc_personality(int version,
return _URC_INSTALL_CONTEXT;
}

OBJC_PUBLIC
BEGIN_PERSONALITY_FUNCTION(__gnu_objc_personality_v0)
return internal_objc_personality(version, actions, exceptionClass,
exceptionObject, context, NO);
}

OBJC_PUBLIC
BEGIN_PERSONALITY_FUNCTION(__gnustep_objc_personality_v0)
return internal_objc_personality(version, actions, exceptionClass,
exceptionObject, context, YES);
}

OBJC_PUBLIC
BEGIN_PERSONALITY_FUNCTION(__gnustep_objcxx_personality_v0)
#ifndef NO_OBJCXX
if (cxx_exception_class == 0)
Expand Down Expand Up @@ -593,7 +597,7 @@ BEGIN_PERSONALITY_FUNCTION(__gnustep_objcxx_personality_v0)
}

#if defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__)
EXCEPTION_DISPOSITION
OBJC_PUBLIC EXCEPTION_DISPOSITION
__gnu_objc_personality_seh0(PEXCEPTION_RECORD ms_exc, void *this_frame,
PCONTEXT ms_orig_context, PDISPATCHER_CONTEXT ms_disp)
{
Expand Down

0 comments on commit 9bd047a

Please sign in to comment.