** Add a string to list of constants and return its index. */
| 456 | ** Add a string to list of constants and return its index. |
| 457 | */ |
| 458 | int luaK_stringK (FuncState *fs, TString *s) { |
| 459 | TValue o; |
| 460 | setsvalue(fs->ls->L, &o, s); |
| 461 | return addk(fs, &o, &o); /* use string itself as key */ |
| 462 | } |
| 463 | |
| 464 | |
| 465 | /* |