Files
2025-12-05 21:41:21 -08:00

35 lines
1.0 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#include <exception>
namespace std {
// Stub C++ exception frame handler for RXDK builds.
// This matches the real signature so the runtime doesn't blow the stack.
extern "C" {
// forward declarations only we don't need the real structs
struct _EXCEPTION_RECORD;
struct _CONTEXT;
struct _DISPATCHER_CONTEXT;
// Copied from <excpt.h> (simplified)
enum EXCEPTION_DISPOSITION {
ExceptionContinueExecution,
ExceptionContinueSearch,
ExceptionNestedException,
ExceptionCollidedUnwind
};
EXCEPTION_DISPOSITION __cdecl __CxxFrameHandler3(
_EXCEPTION_RECORD* /*pExcept*/,
void* /*pFrame*/,
_CONTEXT* /*pContext*/,
_DISPATCHER_CONTEXT* /*pDispatcher*/
) {
// We don't try to handle C++ exceptions, just tell the OS to keep looking.
return ExceptionContinueSearch;
}
} // extern "C"
} // namespace std