** beware: when using this function you probably need to check a GC ** barrier and invalidate the TM cache. */
| 608 | ** barrier and invalidate the TM cache. |
| 609 | */ |
| 610 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { |
| 611 | const TValue *p = luaH_get(t, key); |
| 612 | if (p != luaO_nilobject) |
| 613 | return cast(TValue *, p); |
| 614 | else return luaH_newkey(L, t, key); |
| 615 | } |
| 616 | |
| 617 | |
| 618 | void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { |
no test coverage detected