Skip to content

Commit fa5d329

Browse files
authored
Merge pull request #17 from cschreib/update
Update snatch to v0.1.3
2 parents 3b90166 + 8bfc373 commit fa5d329

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

oup.sublime-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
},
6868
{
6969
"name": "oup_speed_benchmark",
70-
"shell_cmd": "make -j12 oup_speed_benchmark"
70+
"shell_cmd": "make -j12 oup_speed_benchmark",
7171
},
7272
{
7373
"name": "snatch",
74-
"shell_cmd": "make -j12 snatch"
74+
"shell_cmd": "make -j12 snatch",
7575
},
7676
],
7777
"working_dir": "$folder/build",

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ include(FetchContent)
3333

3434
FetchContent_Declare(snatch
3535
GIT_REPOSITORY https://github.com/cschreib/snatch.git
36-
GIT_TAG v0.1.0)
36+
GIT_TAG v0.1.3)
3737
FetchContent_MakeAvailable(snatch)
3838

3939
set(RUNTIME_TEST_FILES

tests/runtime_tests_observer_assignment_copy.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ TEMPLATE_LIST_TEST_CASE(
217217
{
218218
TestType ptr = make_pointer_deleter_1<TestType>();
219219
observer_ptr<TestType> optr{ptr};
220-
WARNING_PUSH;
221-
WARNING_DISABLE_SELF_ASSIGN;
220+
SNATCH_WARNING_PUSH;
221+
SNATCH_WARNING_DISABLE_SELF_ASSIGN;
222222
optr = optr;
223-
WARNING_POP;
223+
SNATCH_WARNING_POP;
224224

225225
CHECK(optr.get() == ptr.get());
226226
CHECK(optr.expired() == false);
@@ -236,10 +236,10 @@ TEMPLATE_LIST_TEST_CASE(
236236

237237
{
238238
observer_ptr<TestType> optr;
239-
WARNING_PUSH;
240-
WARNING_DISABLE_SELF_ASSIGN;
239+
SNATCH_WARNING_PUSH;
240+
SNATCH_WARNING_DISABLE_SELF_ASSIGN;
241241
optr = optr;
242-
WARNING_POP;
242+
SNATCH_WARNING_POP;
243243

244244
CHECK(optr.get() == nullptr);
245245
CHECK(optr.expired() == true);

tests/tests_common.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,12 @@ using owner_types = std::tuple<
631631

632632
// clang-format off
633633
#if defined(__clang__)
634-
# define WARNING_DISABLE_SELF_ASSIGN _Pragma("clang diagnostic ignored \"-Wself-assign-overloaded\"")
634+
# define SNATCH_WARNING_DISABLE_SELF_ASSIGN _Pragma("clang diagnostic ignored \"-Wself-assign-overloaded\"")
635635
#elif defined(__GNUC__)
636-
# define WARNING_DISABLE_SELF_ASSIGN do {} while (0)
636+
# define SNATCH_WARNING_DISABLE_SELF_ASSIGN do {} while (0)
637637
#elif defined(_MSC_VER)
638-
# define WARNING_DISABLE_SELF_ASSIGN do {} while (0)
638+
# define SNATCH_WARNING_DISABLE_SELF_ASSIGN do {} while (0)
639639
#else
640-
# define WARNING_DISABLE_SELF_ASSIGN do {} while (0)
640+
# define SNATCH_WARNING_DISABLE_SELF_ASSIGN do {} while (0)
641641
#endif
642642
// clang-format on

0 commit comments

Comments
 (0)