| 211 | } |
| 212 | |
| 213 | int32_t ContextImpl::get_hit_count(std::string node_name) |
| 214 | { |
| 215 | MaaSize count = 0; |
| 216 | if (!MaaContextGetHitCount(context, node_name.c_str(), &count)) { |
| 217 | throw maajs::MaaError { "Context get_hit_count failed" }; |
| 218 | } |
| 219 | // int32应该够了 |
| 220 | return static_cast<int32_t>(count); |
| 221 | } |
| 222 | |
| 223 | void ContextImpl::clear_hit_count(std::string node_name) |
| 224 | { |
nothing calls this directly
no test coverage detected