aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/assert.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 16:17:50 +0200
committerMarvin Borner2021-04-02 16:17:50 +0200
commitb62b9d1f33a4911feb9f318ece0c1565f27abf8d (patch)
treeaecea9f7b5bf651b584911cf90c61258b9564556 /libs/libc/inc/assert.h
parentd055495f3dbb62f74809d31a84621d6e86d61d0a (diff)
Replaced target macros
Diffstat (limited to 'libs/libc/inc/assert.h')
-rw-r--r--libs/libc/inc/assert.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/libc/inc/assert.h b/libs/libc/inc/assert.h
index ed835c5..9621e36 100644
--- a/libs/libc/inc/assert.h
+++ b/libs/libc/inc/assert.h
@@ -5,7 +5,7 @@
#include <print.h>
-#ifdef kernel
+#ifdef KERNEL
#include <proc.h>
#define assert(exp) \
if (!(exp)) { \
@@ -13,12 +13,10 @@
#exp); \
__asm__ volatile("cli\nhlt"); \
}
-#elif defined(userspace)
+#elif defined(USER)
#define assert(exp) \
if (!(exp)) \
err(1, "%s:%d: %s: Assertion '%s' failed\n", __FILE__, __LINE__, __func__, #exp);
-#else
-#error "No lib target specified. Please use -Dkernel or -Duserspace"
#endif
#endif