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

Function FormatString

shadercompiler/tests/TesingUtils.h:41–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41inline std::string FormatString( const char* format, ... )
42{
43 va_list args;
44
45 va_start( args, format );
46 int count = vsnprintf( nullptr, 0, format, args ) + 1;
47 va_end( args );
48
49 std::string message;
50 message.resize( count );
51
52 va_start( args, format );
53 count = vsnprintf( message.data(), message.size(), format, args );
54 va_end( args );
55
56 return message;
57}

Callers 1

TESTFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected