Make enumeration counts constant expressions

This change allows now having these variables as array sizes that
are not Variable Length Arrays like in structs for example.

To note however that this changes the type from unsigned int to an
implementation defined type which usually `int` which is signed and
not unsigned.
This commit is contained in:
ZXShady authored and Chris Thrasher committed 2024-10-04 09:05:55 -06:00
1 parent cc92ca36b7
commit 884dcde3c3
9 files changed
+20 -24

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ TEST_CASE("[Window] sfSensor")
STATIC_CHECK(sfSensorGravity == static_cast<int>(sf::Sensor::Type::Gravity));
STATIC_CHECK(sfSensorUserAcceleration == static_cast<int>(sf::Sensor::Type::UserAcceleration));
STATIC_CHECK(sfSensorOrientation == static_cast<int>(sf::Sensor::Type::Orientation));
CHECK(sfSensorCount == sf::Sensor::Count);
STATIC_CHECK(sfSensorCount == sf::Sensor::Count);
}
}