| 215 | } |
| 216 | |
| 217 | static int |
| 218 | ts_lua_stat_get_value(lua_State *L) |
| 219 | { |
| 220 | int value; |
| 221 | int idp; |
| 222 | |
| 223 | luaL_checktype(L, 1, LUA_TTABLE); |
| 224 | lua_getfield(L, -1, "id"); |
| 225 | idp = luaL_checknumber(L, -1); |
| 226 | lua_pop(L, 1); |
| 227 | |
| 228 | value = TSStatIntGet(idp); |
| 229 | |
| 230 | lua_pushnumber(L, value); |
| 231 | return 1; |
| 232 | } |
| 233 | |
| 234 | static int |
| 235 | ts_lua_stat_set_value(lua_State *L) |
nothing calls this directly
no test coverage detected