Added cargs lib

This commit is contained in:
Alex
2022-10-20 01:06:58 +03:00
parent 7750dd777e
commit 8673a73ee4
4 changed files with 722 additions and 1 deletions

19
include/assert.h Normal file
View 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__