tracy/server/TracyBadVersion.hpp
2019-08-12 12:36:37 +02:00

33 lines
530 B
C++

#ifndef __TRACYBADVERSION_HPP__
#define __TRACYBADVERSION_HPP__
#include "../common/TracyForceInline.hpp"
namespace tracy
{
struct BadVersionState
{
enum State
{
Ok,
BadFile,
UnsupportedVersion,
LegacyVersion
};
State state = Ok;
int version = 0;
};
namespace detail
{
void BadVersionImpl( BadVersionState& badVer );
}
tracy_force_inline void BadVersion( BadVersionState& badVer ) { if( badVer.state != BadVersionState::Ok ) detail::BadVersionImpl( badVer ); }
}
#endif