chore(atomic): use typedef aliases for better cross platform compat

This commit is contained in:
fallenoak 2020-12-04 00:19:19 -06:00
parent 653fa81853
commit 2200aab4c2
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 14 additions and 6 deletions

View file

@ -3,7 +3,7 @@
TEST_CASE("SInterlockedDecrement", "[atomic]") {
SECTION("decrements value") {
int32_t value = 1;
ATOMIC32 value = 1;
auto decremented = SInterlockedDecrement(&value);
CHECK(value == 0);
CHECK(decremented == 0);
@ -12,7 +12,7 @@ TEST_CASE("SInterlockedDecrement", "[atomic]") {
TEST_CASE("SInterlockedIncrement", "[atomic]") {
SECTION("increments value") {
int32_t value = { 1 };
ATOMIC32 value = 1;
auto incremented = SInterlockedIncrement(&value);
CHECK(value == 2);
CHECK(incremented == 2);