1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_BRIDGES_SOURCE_CPP_UNO_GCC3_LINUX_MIPS64_SHARE_HXX
20 #define INCLUDED_BRIDGES_SOURCE_CPP_UNO_GCC3_LINUX_MIPS64_SHARE_HXX
22 #include "uno/mapping.h"
28 #define MAX_GP_REGS (8)
29 #define MAX_FP_REGS (8)
31 namespace CPPU_CURRENT_NAMESPACE
34 void dummy_can_throw_anything( char const * );
37 // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
39 struct _Unwind_Exception
41 unsigned exception_class
__attribute__((__mode__(__DI__
)));
42 void * exception_cleanup
;
43 unsigned private_1
__attribute__((__mode__(__word__
)));
44 unsigned private_2
__attribute__((__mode__(__word__
)));
45 } __attribute__((__aligned__
));
47 struct __cxa_exception
49 std::type_info
*exceptionType
;
50 void (*exceptionDestructor
)(void *);
52 void (*unexpectedHandler
)(); // std::unexpected_handler dropped from C++17
53 std::terminate_handler terminateHandler
;
55 __cxa_exception
*nextException
;
59 int handlerSwitchValue
;
60 const unsigned char *actionRecord
;
61 const unsigned char *languageSpecificData
;
65 _Unwind_Exception unwindHeader
;
68 extern "C" void *__cxa_allocate_exception(
69 std::size_t thrown_size
) throw();
70 extern "C" void __cxa_throw (
71 void *thrown_exception
, std::type_info
*tinfo
, void (*dest
) (void *) ) __attribute__((noreturn
));
73 struct __cxa_eh_globals
75 __cxa_exception
*caughtExceptions
;
76 unsigned int uncaughtExceptions
;
79 extern "C" __cxa_eh_globals
*__cxa_get_globals () throw();
80 extern "C" std::type_info
*__cxa_current_exception_type() throw();
83 uno_Any
* pUnoExc
, uno_Mapping
* pUno2Cpp
);
85 void fillUnoException(uno_Any
*, uno_Mapping
* pCpp2Uno
);
87 bool return_in_hidden_param( typelib_TypeDescriptionReference
*pTypeRef
);
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */