Skip to content

Commit

Permalink
-updated include guards in contract.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kamchatka-volcano committed Apr 29, 2023
1 parent 0125f4e commit 58ec11d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/sfun/contract.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef STUFF_FROM_UNNAMED_NAMESPACE_CONTRACT_H
#define STUFF_FROM_UNNAMED_NAMESPACE_CONTRACT_H
#ifndef STUFF_FROM_UNNAMED_NAMESPACE_V4_AND_NEWER_CONTRACT_H
#define STUFF_FROM_UNNAMED_NAMESPACE_V4_AND_NEWER_CONTRACT_H

///
///Renamed part of Microsoft.GSL assert header
Expand All @@ -8,7 +8,7 @@
#if defined(__clang__) || defined(__GNUC__)
#define _sfun_likely(x) __builtin_expect(!!(x), 1)
#else
#define _sfunLikely(x) (!!(x))
#define _sfun_likely(x) (!!(x))
#endif //defined(__clang__) || defined(__GNUC__)

#define sfun_contract_check(cond) (_sfun_likely(cond) ? static_cast<void>(0) : std::terminate())
Expand All @@ -17,4 +17,4 @@
#define sfun_postcondition sfun_contract_check
#define sfun_invariant sfun_contract_check

#endif //STUFF_FROM_UNNAMED_NAMESPACE_CONTRACT_H
#endif //STUFF_FROM_UNNAMED_NAMESPACE_V4_AND_NEWER_CONTRACT_H

0 comments on commit 58ec11d

Please sign in to comment.