genode/repos/base-sel4/include/sel4/assert.h
2017-02-28 12:59:29 +01:00

27 lines
595 B
C

/*
* \brief Assertion macro expected by seL4's kernel-interface headers
* \author Norman Feske
* \date 2014-10-15
*/
/*
* Copyright (C) 2014-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _INCLUDE__SEL4__ASSERT_H_
#define _INCLUDE__SEL4__ASSERT_H_
/* Genode includes */
#include <base/log.h>
#define seL4_Assert(v) do { \
if (!(v)) { \
Genode::error("assertion failed: ", #v); \
for (;;); \
} } while (0);
#endif /* _INCLUDE__SEL4__ASSERT_H_ */