** beware: when using this function you probably need to check a GC ** barrier and invalidate the TM cache. */
| 760 | ** barrier and invalidate the TM cache. |
| 761 | */ |
| 762 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { |
| 763 | const TValue *p = luaH_get(t, key); |
| 764 | if (!isabstkey(p)) |
| 765 | return cast(TValue *, p); |
| 766 | else return luaH_newkey(L, t, key); |
| 767 | } |
| 768 | |
| 769 | |
| 770 | void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { |
no test coverage detected