mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 16:03:53 +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."
|
||||
};
|
||||
|
||||
static_assert( sizeof( s_failureReasons ) / sizeof( *s_failureReasons ) == (int)Worker::Failure::NUM_FAILURES, "Missing failure reason description." );
|
||||
|
||||
const char* Worker::GetFailureString( Worker::Failure failure )
|
||||
{
|
||||
return s_failureReasons[(int)failure];
|
||||
|
Loading…
x
Reference in New Issue
Block a user