MCPcopy Create free account
hub / github.com/albertodemichelis/squirrel / _string_printf

Function _string_printf

sqstdlib/sqstdstring.cpp:178–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static SQInteger _string_printf(HSQUIRRELVM v)
179{
180 SQChar *dest = NULL;
181 SQInteger length = 0;
182 if(SQ_FAILED(sqstd_format(v,2,&length,&dest)))
183 return -1;
184
185 SQPRINTFUNCTION printfunc = sq_getprintfunc(v);
186 if(printfunc) printfunc(v,_SC("%s"),dest);
187
188 return 0;
189}
190
191static SQInteger _string_format(HSQUIRRELVM v)
192{

Callers

nothing calls this directly

Calls 3

sqstd_formatFunction · 0.85
sq_getprintfuncFunction · 0.85
printfuncFunction · 0.50

Tested by

no test coverage detected