mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Check for proper number of failure reasons.
This commit is contained in:
parent
76ab70a948
commit
ecf9a299de
@ -3648,6 +3648,8 @@ static const char* s_failureReasons[] = {
|
|||||||
"Invalid order of zone begin and end events."
|
"Invalid order of zone begin and end events."
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert( sizeof( s_failureReasons ) / sizeof( *s_failureReasons ) == (int)Worker::Failure::NUM_FAILURES, "Missing failure reason description." );
|
||||||
|
|
||||||
const char* Worker::GetFailureString( Worker::Failure failure )
|
const char* Worker::GetFailureString( Worker::Failure failure )
|
||||||
{
|
{
|
||||||
return s_failureReasons[(int)failure];
|
return s_failureReasons[(int)failure];
|
||||||
|
Loading…
Reference in New Issue
Block a user