** Find a "name" for the constant 'c'. */
| 490 | ** Find a "name" for the constant 'c'. |
| 491 | */ |
| 492 | static 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 | |
| 505 | static const char *basicgetobjname (const Proto *p, int *ppc, int reg, |
no outgoing calls
no test coverage detected