BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / 2d05318728e0aa3fca502a2aeb1738773fffc98b / include / nucleus / kernel.h

// Related

Nucleus

Barry Kernel printf routines 120a213 (3 years, 2 months ago)
#ifndef _NUCLEUS_KERNEL_H
#define _NUCLEUS_KERNEL_H

#include <stdarg.h>

int vsprintf(char *buf, const char *fmt, va_list args);
int sprintf(char *buf, const char *fmt, ...);
void dbgprintf(char *str);
void kprintf(char *fmt, ...);
_Noreturn void panic(char *fmt, ...);

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

#endif