| 33 | #if defined(WINDOWS) |
| 34 | #include <cstdarg> |
| 35 | inline int wd_snprintf(char* str, size_t size, const char* format, ...) { |
| 36 | va_list args; |
| 37 | va_start(args, format); |
| 38 | int count = _vscprintf(format, args); |
| 39 | if (str != NULL && size > 0) { |
| 40 | count = _vsnprintf_s(str, size, _TRUNCATE, format, args); |
| 41 | } |
| 42 | va_end(args); |
| 43 | return count; |
| 44 | } |
| 45 | #define snprintf wd_snprintf |
| 46 | #endif |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected