* Get the window number for the inspect window given a * feature and index. * @param feature The feature we want to inspect. * @param index The index/identifier of the feature to inspect. * @return the InspectWindow (Window)Number */
| 70 | * @return the InspectWindow (Window)Number |
| 71 | */ |
| 72 | static inline uint GetInspectWindowNumber(GrfSpecFeature feature, uint index) |
| 73 | { |
| 74 | assert((index >> 24) == 0); |
| 75 | return (feature << 24) | index; |
| 76 | } |
| 77 | |
| 78 | static inline uint GetInspectWindowNumber(GrfSpecFeature feature, ConvertibleThroughBase auto index) { return GetInspectWindowNumber(feature, index.base()); } |
| 79 |
no test coverage detected