MCPcopy Create free account
hub / github.com/carbonengine/trinity / SanityCheck

Function SanityCheck

trinity/Shader/Tr2EffectDescription.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28template <typename T1, typename T2>
29T1 SanityCheck( T1 value, T2 limit )
30{
31 if( value > limit )
32 {
33 throw std::runtime_error( "Unexpected value" );
34 }
35 return value;
36}
37
38class EffectStream
39{

Callers 3

ReadPipelineInputsFunction · 0.85
ReadInputFunction · 0.85
ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected