Files
UnrealEngine/Engine/Source/ThirdParty/GuidelinesSupportLibrary/GSL-1144/tests/deathTestCommon.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

12 lines
369 B
C++

#pragma once
#include <gsl/assert>
constexpr char deathstring[] = "Expected Death";
constexpr char failed_set_terminate_deathstring[] = ".*";
// This prevents a failed call to set_terminate from failing the test suite.
constexpr const char* GetExpectedDeathString(std::terminate_handler handle)
{
return handle ? deathstring : failed_set_terminate_deathstring;
}