mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
27 lines
595 B
C
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_ */
|