| 552 | |
| 553 | |
| 554 | TValue *luaH_setstr (lua_State *L, Table *t, TString *key) { |
| 555 | const TValue *p = luaH_getstr(t, key); |
| 556 | if (p != luaO_nilobject) { |
| 557 | check_readonlyold(L, t, cast(TValue *, p)); /*BZ*/ |
| 558 | return cast(TValue *, p); |
| 559 | } |
| 560 | else { |
| 561 | TValue k; |
| 562 | check_readonlynew(L, t); /*BZ*/ |
| 563 | setsvalue(L, &k, key); |
| 564 | return newkey(L, t, &k); |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | |
| 569 | static int unbound_search (Table *t, unsigned int j) { |
no test coverage detected