MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ReorderTranslationParams

Function ReorderTranslationParams

core/logic/sprintf.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56inline void ReorderTranslationParams(const Translation *pTrans, cell_t *params)
57{
58 cell_t new_params[MAX_TRANSLATE_PARAMS];
59 for (unsigned int i = 0; i < pTrans->fmt_count; i++)
60 {
61 new_params[i] = params[pTrans->fmt_order[i]];
62 }
63 memcpy(params, new_params, pTrans->fmt_count * sizeof(cell_t));
64}
65
66size_t Translate(char *buffer,
67 size_t maxlen,

Callers 1

TranslateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected