| 198 | } |
| 199 | |
| 200 | static int |
| 201 | ts_lua_stat_decrement(lua_State *L) |
| 202 | { |
| 203 | int decrement; |
| 204 | int idp; |
| 205 | decrement = luaL_checkinteger(L, 2); |
| 206 | |
| 207 | luaL_checktype(L, 1, LUA_TTABLE); |
| 208 | lua_getfield(L, -2, "id"); |
| 209 | idp = luaL_checknumber(L, -1); |
| 210 | lua_pop(L, 1); |
| 211 | |
| 212 | TSStatIntDecrement(idp, decrement); |
| 213 | |
| 214 | return 0; |
| 215 | } |
| 216 | |
| 217 | static int |
| 218 | ts_lua_stat_get_value(lua_State *L) |
nothing calls this directly
no test coverage detected