Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
/*------------------------------------------------------------------------
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