LibC: Add some new functions
This commit is contained in:
parent
90632de834
commit
f4b614aa61
|
@ -15,8 +15,8 @@ LIBDIR?=$(EXEC_PREFIX)/lib
|
|||
|
||||
CFLAGS:=$(CFLAGS) -D__is_libc -Iinclude -ffreestanding -Wall -Wextra
|
||||
CPPFLAGS:=$(CPPFLAGS)
|
||||
LIBK_CFLAGS:=$(CFLAGS)
|
||||
LIBK_CPPFLAGS:=$(CPPFLAGS) -D__is_libk
|
||||
LIBK_CFLAGS:=$(CFLAGS) -D__is_libk
|
||||
LIBK_CPPFLAGS:=$(CPPFLAGS)
|
||||
|
||||
ARCHDIR=arch/$(HOSTARCH)
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define assert(expr) { if (!(expr)) abort(); }
|
|
@ -0,0 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
Loading…
Reference in New Issue