mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
35 lines
599 B
C++
35 lines
599 B
C++
#ifndef __TRACYBADVERSION_HPP__
|
|
#define __TRACYBADVERSION_HPP__
|
|
|
|
#include <imgui.h>
|
|
#include "../common/TracyForceInline.hpp"
|
|
|
|
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
|