Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/VLC/modules/gui/qt/maininterface/   (VLC Media Plyer ©)  Datei vom 23.9.2026 mit Größe 1 kB image not shown  

Quelle  compositor_dcomp_error.hpp   Sprache: C

 

/*****************************************************************************
 * Copyright (C) 2020 VLC authors and VideoLAN
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef COMPOSITOR_DCOMP_ERROR_HPP
#define COMPOSITOR_DCOMP_ERROR_HPP


#include <stdexcept>
#include <windows.h>

namespace vlc {

class DXError : public std::runtime_error
{
public:
    explicit DXError(const std::string& msg, HRESULT code)
        : std::runtime_error(msg)
        , m_code(code)
    {
    }

    explicit DXError(const char* msg, HRESULT code)
        : std::runtime_error(msg)
        , m_code(code)
    {
    }

    inline HRESULT code() const
    {
        return m_code;
    }

private:
    HRESULT m_code;
};

inline void HR( HRESULT hr, const std::string& msg )
{
    if( FAILED( hr ) )
        throw DXError{ msg, hr };
}

inline void HR( HRESULT hr, const char* msg = "" )
{
    if( FAILED( hr ) )
        throw DXError{ msg, hr  };
}

}


#endif // COMPOSITOR_DCOMP_ERROR_HPP

Messung
CHZG
859910094

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.