MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / kname

Function kname

lib/lua/src/ldebug.c:482–492  ·  view source on GitHub ↗

** Find a "name" for the constant 'c'. */

Source from the content-addressed store, hash-verified

480** Find a "name" for the constant 'c'.
481*/
482static const char *kname (const Proto *p, int index, const char **name) {
483 TValue *kvalue = &p->k[index];
484 if (ttisstring(kvalue)) {
485 *name = getstr(tsvalue(kvalue));
486 return "constant";
487 }
488 else {
489 *name = "?";
490 return NULL;
491 }
492}
493
494
495static const char *basicgetobjname (const Proto *p, int *ppc, int reg,

Callers 3

basicgetobjnameFunction · 0.85
rknameFunction · 0.85
getobjnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected