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