/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_SAL_BACKTRACE_HXX #define INCLUDED_SAL_BACKTRACE_HXX #include "sal/config.h" #include "sal/saldllapi.h" #include "sal/types.h" #include "rtl/ustring.hxx" #include /// @cond INTERNAL /** Two stage API for recording and then later decoding stack backtraces. Useful for debugging facilities where we are only interested in decoding a small handful of recorded stack traces. @param backtraceDepth value indicating the maximum backtrace depth; must be > 0 @since LibreOffice 6.0 */ #if defined LIBO_INTERNAL_ONLY namespace sal { struct BacktraceState { void** buffer; int nDepth; ~BacktraceState() { delete[] buffer; } }; SAL_DLLPUBLIC std::unique_ptr backtrace_get(sal_uInt32 backtraceDepth); SAL_DLLPUBLIC OUString backtrace_to_string(BacktraceState* backtraceState); } #endif #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-19 19:31:21 +0200
commit566de3328e60b2608b8f611698b6d26fc33b05f1 (patch)
tree72ab7fd9be4e1c66e61ec6377246aac4c99a35d9 /extensions/source/logging
parent7eda35a36c8837c620722e5c26c90324ae9b48e9 (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: extensions
Change-Id: I30f81bdcd7ba877e65c8f134352669e22d78b033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158192 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>