MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / kname

Function kname

third-party/lua-5.4.6/src/ldebug.c:485–495  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 3

basicgetobjnameFunction · 0.70
rknameFunction · 0.70
getobjnameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected