Skip to content

Commit

Permalink
Fix OSS logging unterminated macro 'XR_CHECK_LT
Browse files Browse the repository at this point in the history
Summary: Fix to an unterminated parenthesis in a macro expansion for `XR_CHECK_LT`

Reviewed By: georges-berenger

Differential Revision: D54135452

fbshipit-source-id: 4e97e7d7c7d077bbc5de4257b88a09a3d6e2162c
  • Loading branch information
Alexander Gamino authored and facebook-github-bot committed Feb 26, 2024
1 parent fe46daf commit 610c3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vrs/oss/logging/Checks.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void logAndAbort(const char* condition, const std::string& message = {});

#define XR_CHECK_LE(val1, val2, ...) XR_CHECK((val1) <= (val2), ##__VA_ARGS__)

#define XR_CHECK_LT(val1, val2, ...) XR_CHECK((val1) < (val2, ##__VA_ARGS__)
#define XR_CHECK_LT(val1, val2, ...) XR_CHECK((val1) < (val2), ##__VA_ARGS__)

#define XR_CHECK_NOTNULL(val, ...) XR_CHECK((val) != nullptr, ##__VA_ARGS__)

Expand Down

0 comments on commit 610c3f4

Please sign in to comment.