** Add a string to list of constants and return its index. */
| 463 | ** Add a string to list of constants and return its index. |
| 464 | */ |
| 465 | int luaK_stringK (FuncState *fs, TString *s) { |
| 466 | TValue o; |
| 467 | setsvalue(fs->ls->L, &o, s); |
| 468 | return addk(fs, &o, &o); /* use string itself as key */ |
| 469 | } |
| 470 | |
| 471 | |
| 472 | /* |