MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / ScriptVSprintf

Function ScriptVSprintf

Engine/script/script_api.h:52–55  ·  view source on GitHub ↗

Variadic sprintf (needed, because all arguments are pushed as pointer-sized values). Currently used only when plugin calls exported engine function.

Source from the content-addressed store, hash-verified

50// Variadic sprintf (needed, because all arguments are pushed as pointer-sized values).
51// Currently used only when plugin calls exported engine function.
52inline 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
57inline const char *ScriptVSprintf(std::vector<char> &buf, const char *format, va_list &arg_ptr)
58{

Callers 1

ScriptVSprintf__Function · 0.85

Calls 2

ScriptSprintfFunction · 0.70
sizeMethod · 0.45

Tested by 1

ScriptVSprintf__Function · 0.68