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

Function kname

third-party/lua-5.5.0/src/ldebug.c:492–502  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

490** Find a "name" for the constant 'c'.
491*/
492static const char *kname (const Proto *p, int index, const char **name) {
493 TValue *kvalue = &p->k[index];
494 if (ttisstring(kvalue)) {
495 *name = getstr(tsvalue(kvalue));
496 return "constant";
497 }
498 else {
499 *name = "?";
500 return NULL;
501 }
502}
503
504
505static const char *basicgetobjname (const Proto *p, int *ppc, int reg,

Callers 3

basicgetobjnameFunction · 0.70
getobjnameFunction · 0.70
luaG_errnnilFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected