Skip to content

Commit

Permalink
Fix: Also check for __clang__ for unreachable macro
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Nov 19, 2023
1 parent 4c05a08 commit 3c0b5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fastgltf/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

#if FASTGLTF_CPP_23
#define FASTGLTF_UNREACHABLE std::unreachable();
#elif defined(__GNUC__)
#elif defined(__GNUC__) || defined(__clang__)
#define FASTGLTF_UNREACHABLE __builtin_unreachable();
#elif defined(_MSC_VER)
#define FASTGLTF_UNREACHABLE __assume(false);
Expand Down

0 comments on commit 3c0b5d1

Please sign in to comment.