** beware: when using this function you probably need to check a GC ** barrier and invalidate the TM cache. */
| 511 | ** barrier and invalidate the TM cache. |
| 512 | */ |
| 513 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { |
| 514 | const TValue *p = luaH_get(t, key); |
| 515 | if (p != luaO_nilobject) |
| 516 | return cast(TValue *, p); |
| 517 | else return luaH_newkey(L, t, key); |
| 518 | } |
| 519 | |
| 520 | |
| 521 | void luaH_setint (lua_State *L, Table *t, int key, TValue *value) { |
no test coverage detected