Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TracyBadVersion.hpp « server - github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d89d6a70883e89115c6c4abec5dba180722b470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __TRACYBADVERSION_HPP__
#define __TRACYBADVERSION_HPP__

#include "../public/common/TracyForceInline.hpp"

struct ImFont;

namespace tracy
{

struct BadVersionState
{
    enum State
    {
        Ok,
        BadFile,
        ReadError,
        UnsupportedVersion,
        LegacyVersion
    };

    State state = Ok;
    int version = 0;
};

namespace detail
{
void BadVersionImpl( BadVersionState& badVer, ImFont* big );
}

tracy_force_inline void BadVersion( BadVersionState& badVer, ImFont* big ) { if( badVer.state != BadVersionState::Ok ) detail::BadVersionImpl( badVer, big ); }

}

#endif