Simple VFS layer
This commit is contained in:
15
kernel/assert.h
Normal file
15
kernel/assert.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef ASSERT_H_
|
||||
#define ASSERT_H_
|
||||
|
||||
#include "kprintf.h"
|
||||
#include "hal/hal.h"
|
||||
|
||||
#define ASSERT(mod, cond, fmt, ...) \
|
||||
do { \
|
||||
if (!(cond)) { \
|
||||
ERR(mod, fmt, ##__VA_ARGS__); \
|
||||
hal_hang(); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#endif // ASSERT_H_
|
Reference in New Issue
Block a user