BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / b33d632d85a31b49ca4a764fe3b644a60459387b / include / nucleus / panic.h

// Related

Nucleus

Barry Interrupt handlers b33d632 (3 years, 3 months ago)
#ifndef _NUCLEUS_PANIC_H
#define _NUCLEUS_PANIC_H

_Noreturn void panic(char *fmt, ...);

#define ASSERT(c) ({ \
	if (__builtin_expect(!(c),0)) \
		panic("Assertion failed (%s:%d): " #c, \
		      __FILE__, __LINE__); \
	c; \
})

#endif