| 232 | } |
| 233 | |
| 234 | static int |
| 235 | ts_lua_stat_set_value(lua_State *L) |
| 236 | { |
| 237 | int value; |
| 238 | int idp; |
| 239 | value = luaL_checkinteger(L, 2); |
| 240 | |
| 241 | luaL_checktype(L, 1, LUA_TTABLE); |
| 242 | lua_getfield(L, -2, "id"); |
| 243 | idp = luaL_checknumber(L, -1); |
| 244 | lua_pop(L, 1); |
| 245 | |
| 246 | TSStatIntSet(idp, value); |
| 247 | |
| 248 | return 0; |
| 249 | } |
nothing calls this directly
no test coverage detected