-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
; added macros to detect compiler; added CRILL_PRE macro (currently j…
…ust resolving to C assert)
- Loading branch information
1 parent
ad82785
commit de28673
Showing
6 changed files
with
140 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
// | ||
// Created by Timur Doumler on 12/11/2024. | ||
// | ||
// crill - the Cross-platform Real-time, I/O, and Low-Latency Library | ||
// Copyright (c) 2022 - Timur Doumler and Fabian Renn-Giles | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | ||
|
||
#ifndef CRILL_CONTRACTS_H | ||
#define CRILL_CONTRACTS_H | ||
|
||
#include <cassert> | ||
|
||
// This will eventually be a proper macro-based Contracts facility | ||
// but at the moment is just an alias for C assert. | ||
#define CRILL_PRE(x) assert(x) | ||
|
||
#endif //CRILL_CONTRACTS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters