Codechange: add annotation to selectively force inlining in debug build
This commit is contained in:
@@ -512,7 +512,7 @@ public:
|
||||
* Check if the vehicle is a ground vehicle.
|
||||
* @return True iff the vehicle is a train or a road vehicle.
|
||||
*/
|
||||
inline bool IsGroundVehicle() const
|
||||
debug_inline bool IsGroundVehicle() const
|
||||
{
|
||||
return this->type == VEH_TRAIN || this->type == VEH_ROAD;
|
||||
}
|
||||
@@ -924,7 +924,7 @@ public:
|
||||
* Check if the vehicle is a front engine.
|
||||
* @return Returns true if the vehicle is a front engine.
|
||||
*/
|
||||
inline bool IsFrontEngine() const
|
||||
debug_inline bool IsFrontEngine() const
|
||||
{
|
||||
return this->IsGroundVehicle() && HasBit(this->subtype, GVSF_FRONT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user