MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / TIXML_VSCPRINTF

Function TIXML_VSCPRINTF

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:71–89  ·  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.
71static inline int TIXML_VSCPRINTF(const char* format, va_list va)
72{
73 int len = 512;
74 for (;;)
75 {
76 len = len * 2;
77 char* str = new char[len]();
78 const int required = _vsnprintf(str, len, format, va);
79 delete[] str;
80 if (required != -1)
81 {
82 TIXMLASSERT(required >= 0);
83 len = required;
84 break;
85 }
86 }
87 TIXMLASSERT(len >= 0);
88 return len;
89}
90#endif
91#else
92// GCC version 3 and higher

Callers 1

PrintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected