mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-10 23:09:15 +00:00
Added cargs lib
This commit is contained in:
19
include/assert.h
Normal file
19
include/assert.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef __FENNIX_KERNEL_ASSERT_H__
|
||||
#define __FENNIX_KERNEL_ASSERT_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#define assert(x) \
|
||||
do \
|
||||
{ \
|
||||
if (!(x)) \
|
||||
while (1) \
|
||||
; \
|
||||
} while (0)
|
||||
|
||||
#define static_assert(x) \
|
||||
switch (x) \
|
||||
case 0: \
|
||||
case (x):
|
||||
|
||||
#endif // !__FENNIX_KERNEL_ASSERT_H__
|
Reference in New Issue
Block a user