mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(atomic): use typedef aliases for better cross platform compat
This commit is contained in:
parent
653fa81853
commit
2200aab4c2
3 changed files with 14 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue