Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
turf/turf/Assert.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (22 sloc)
828 Bytes
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
| /*------------------------------------------------------------------------ | |
| Turf: Configurable C++ platform adapter | |
| Copyright (c) 2016 Jeff Preshing | |
| Distributed under the Simplified BSD License. | |
| Original location: https://github.com/preshing/turf | |
| This software is distributed WITHOUT ANY WARRANTY; without even the | |
| implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| See the LICENSE file for more information. | |
| ------------------------------------------------------------------------*/ | |
| #ifndef TURF_ASSERT_H | |
| #define TURF_ASSERT_H | |
| #include <turf/Core.h> | |
| // clang-format off | |
| #if TURF_WITH_ASSERTS | |
| #define TURF_ASSERT(cond) do { \ | |
| if (!(cond)) \ | |
| TURF_DEBUG_BREAK(); \ | |
| } while (0) | |
| #else | |
| #define TURF_ASSERT(cond) do {} while (0) | |
| #endif | |
| #endif // TURF_ASSERT_H |