ifndef AX_CORE_PROFILE
| 40 | { |
| 41 | //#ifndef AX_CORE_PROFILE |
| 42 | std::string AX_DLL format(const char* format, ...) |
| 43 | { |
| 44 | va_list args; |
| 45 | va_start(args, format); |
| 46 | auto ret = vformat(format, args); |
| 47 | va_end(args); |
| 48 | return ret; |
| 49 | } |
| 50 | /*--- This a C++ universal sprintf in the future. |
| 51 | ** @pitfall: The behavior of vsnprintf between VS2013 and VS2015/2017 is different |
| 52 | ** VS2013 or Unix-Like System will return -1 when buffer not enough, but VS2015/2017 will return the actural needed |