Skip to content

Commit

Permalink
pw_assert: Require pw_assert CHECK backends to use the new header
Browse files Browse the repository at this point in the history
Both backend header names were supported temporarily to avoid breaking
downstream projects.

Change-Id: Ic271bebe536b5a4689175b8f3e226fc97c9ec0be
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/96760
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
  • Loading branch information
255 authored and CQ Bot Account committed Jun 2, 2022
1 parent b6e05e0 commit cd44cfd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pw_assert/public/pw_assert/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,4 @@
// Note that for the assert failures, the handler should assume the assert
// has already failed (the facade checks the condition before delegating).
//

// Temporarily check for the presence of the new header for backwards
// compatibilty. This will be removed once users migrate.
#if __has_include("pw_assert_backend/check_backend.h")
#include "pw_assert_backend/check_backend.h"
#else
// If the new header doesn't exist, use the old header.
#include "pw_assert_backend/assert_backend.h"
#endif // __has_include("pw_assert_backend/check_backend.h")

0 comments on commit cd44cfd

Please sign in to comment.