mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
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:
1 parent
cc92ca36b7
commit
884dcde3c3
9 files changed
+20
-24
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user