** beware: when using this function you probably need to check a GC ** barrier and invalidate the TM cache. */
| 570 | ** barrier and invalidate the TM cache. |
| 571 | */ |
| 572 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { |
| 573 | const TValue *p = luaH_get(t, key); |
| 574 | if (p != luaO_nilobject) |
| 575 | return cast(TValue *, p); |
| 576 | else return luaH_newkey(L, t, key); |
| 577 | } |
| 578 | |
| 579 | |
| 580 | void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { |
no test coverage detected