14#define l4_assert(x) do { } while (0)
15#define l4_check(x) do { (void)(x); } while (0)
20#include <l4/sys/thread.h>
32#define l4_assert(expr) \
33 l4_assert_fn(!!(expr), __FILE__ ":" L4_stringify(__LINE__) ": Assertion \"" \
34 L4_stringify(expr) "\" failed.\n")
32#define l4_assert(expr) \ …
36#define l4_check(expr) l4_assert(expr)
42void l4_assert_fn(
unsigned expr,
const char *text)
L4_NOTHROW;
48void l4_assert_abort(
const char *text)
L4_NOTHROW;
54void l4_assert_abort(
const char *text)
L4_NOTHROW
63void l4_assert_fn(
unsigned expr,
const char *text)
L4_NOTHROW
68 l4_assert_abort(text);
L4 compiler related defines.
@ L4_BASE_LOG_CAP
Capability selector for the log object.
@ L4_INVALID_CAP
Invalid capability selector.
l4_msgtag_t l4_thread_ex_regs(l4_cap_idx_t thread, l4_addr_t ip, l4_addr_t sp, l4_umword_t flags) L4_NOTHROW
Exchange basic thread registers.
@ L4_THREAD_EX_REGS_TRIGGER_EXCEPTION
Trigger artificial exception in thread.
long l4_vcon_write(l4_cap_idx_t vcon, char const *buf, unsigned size) L4_NOTHROW
Write data to virtual console.
#define L4_ALWAYS_INLINE
Always inline a function.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
#define L4_INLINE
L4 Inline function attribute.
#define L4_NORETURN
Noreturn function attribute.
#define L4_LIKELY(x)
Expression is likely to execute.
Virtual console interface.