MCPcopy Create free account
hub / github.com/ZDoom/Raze / C_NameKeys

Function C_NameKeys

source/common/console/c_bind.cpp:262–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260//=============================================================================
261
262void C_NameKeys (char *str, int first, int second)
263{
264 int c = 0;
265
266 *str = 0;
267 if (second == first) second = 0;
268 if (first)
269 {
270 c++;
271 strcpy (str, KeyName (first));
272 if (second)
273 strcat (str, TEXTCOLOR_BLACK ", " TEXTCOLOR_NORMAL);
274 }
275
276 if (second)
277 {
278 c++;
279 strcat (str, KeyName (second));
280 }
281
282 if (!c)
283 *str = '\0';
284}
285
286//=============================================================================
287//

Callers 1

DEFINE_ACTION_FUNCTIONFunction · 0.85

Calls 2

KeyNameFunction · 0.85
IsNotEmptyMethod · 0.80

Tested by

no test coverage detected