MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / TIXML_VSCPRINTF

Function TIXML_VSCPRINTF

3rdparty/tinyxml2/tinyxml2.cpp:71–87  ·  view source on GitHub ↗

Microsoft Visual Studio 2003 and earlier or WinCE.

Source from the content-addressed store, hash-verified

69 #else
70 // Microsoft Visual Studio 2003 and earlier or WinCE.
71 static inline int TIXML_VSCPRINTF( const char* format, va_list va )
72 {
73 int len = 512;
74 for (;;) {
75 len = len*2;
76 char* str = new char[len]();
77 const int required = _vsnprintf(str, len, format, va);
78 delete[] str;
79 if ( required != -1 ) {
80 TIXMLASSERT( required >= 0 );
81 len = required;
82 break;
83 }
84 }
85 TIXMLASSERT( len >= 0 );
86 return len;
87 }
88 #endif
89#else
90 // GCC version 3 and higher

Callers 1

PrintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected