Variadic sprintf (needed, because all arguments are pushed as pointer-sized values). Currently used only when plugin calls exported engine function.
| 50 | // Variadic sprintf (needed, because all arguments are pushed as pointer-sized values). |
| 51 | // Currently used only when plugin calls exported engine function. |
| 52 | inline size_t ScriptVSprintf(char *buffer, size_t buf_length, const char *format, va_list &arg_ptr) |
| 53 | { |
| 54 | return ScriptSprintf(buffer, buf_length, format, nullptr, 0, &arg_ptr); |
| 55 | } |
| 56 | // // Variadic sprintf that prints into the resizable vector |
| 57 | inline const char *ScriptVSprintf(std::vector<char> &buf, const char *format, va_list &arg_ptr) |
| 58 | { |