Codechange: add annotation to selectively force inlining in debug build
This commit is contained in:
@@ -86,11 +86,11 @@ struct CFollowTrackT
|
||||
m_railtypes = railtype_override;
|
||||
}
|
||||
|
||||
inline static TransportType TT() { return Ttr_type_; }
|
||||
inline static bool IsWaterTT() { return TT() == TRANSPORT_WATER; }
|
||||
inline static bool IsRailTT() { return TT() == TRANSPORT_RAIL; }
|
||||
debug_inline static TransportType TT() { return Ttr_type_; }
|
||||
debug_inline static bool IsWaterTT() { return TT() == TRANSPORT_WATER; }
|
||||
debug_inline static bool IsRailTT() { return TT() == TRANSPORT_RAIL; }
|
||||
inline bool IsTram() { return IsRoadTT() && RoadTypeIsTram(RoadVehicle::From(m_veh)->roadtype); }
|
||||
inline static bool IsRoadTT() { return TT() == TRANSPORT_ROAD; }
|
||||
debug_inline static bool IsRoadTT() { return TT() == TRANSPORT_ROAD; }
|
||||
inline static bool Allow90degTurns() { return T90deg_turns_allowed_; }
|
||||
inline static bool DoTrackMasking() { return Tmask_reserved_tracks; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user