LibreOffice Module bridges (master) 1
gcc3_linux_loongarch64/share.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include "uno/mapping.h"
22
23#include <typeinfo>
24#include <exception>
25#include <cstddef>
26
28{
29void dummy_can_throw_anything(char const*);
30
31// ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
32
33struct _Unwind_Exception
34{
35 unsigned exception_class __attribute__((__mode__(__DI__)));
37 unsigned private_1 __attribute__((__mode__(__word__)));
38 unsigned private_2 __attribute__((__mode__(__word__)));
39} __attribute__((__aligned__));
40
41struct __cxa_exception
42{
43 std::type_info* exceptionType;
44 void (*exceptionDestructor)(void*);
45
46 void (*unexpectedHandler)(); // std::unexpected_handler dropped from C++17
47 std::terminate_handler terminateHandler;
48
50
51 int handlerCount;
52
54 const unsigned char* actionRecord;
55 const unsigned char* languageSpecificData;
56 void* catchTemp;
57 void* adjustedPtr;
58
60};
61
62extern "C" void* __cxa_allocate_exception(std::size_t thrown_size) throw();
63extern "C" void __cxa_throw(void* thrown_exception, std::type_info* tinfo, void (*dest)(void*))
64 __attribute__((noreturn));
65
66struct __cxa_eh_globals
67{
68 __cxa_exception* caughtExceptions;
69 unsigned int uncaughtExceptions;
70};
71
72extern "C" __cxa_eh_globals* __cxa_get_globals() throw();
73extern "C" std::type_info* __cxa_current_exception_type() throw();
74
75void raiseException(uno_Any* pUnoExc, uno_Mapping* pUno2Cpp);
76
77void fillUnoException(uno_Any*, uno_Mapping* pCpp2Uno);
78
79bool return_in_hidden_param(typelib_TypeDescriptionReference* pTypeRef);
80}
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
struct _uno_Mapping uno_Mapping
Definition: msvc/except.hxx:33
struct _uno_Any uno_Any
Definition: msvc/except.hxx:32
__cxa_eh_globals * __cxa_get_globals()
bool return_in_hidden_param(typelib_TypeDescriptionReference *pTypeRef)
void __cxa_throw(void *thrown_exception, std::type_info *tinfo, void(*dest)(void *)) __attribute__((noreturn))
void dummy_can_throw_anything(char const *)
unsigned _Unwind_Ptr __attribute__((__mode__(__pointer__)))
void * __cxa_allocate_exception(std::size_t thrown_size)
void fillUnoException(uno_Any *pUnoExc, uno_Mapping *pCpp2Uno)
std::type_info * __cxa_current_exception_type()
void raiseException(uno_Any *pUnoExc, uno_Mapping *pUno2Cpp)
unsigned exception_class __attribute__((__mode__(__DI__)))
unsigned private_1 __attribute__((__mode__(__word__)))
unsigned private_2 __attribute__((__mode__(__word__)))