X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/37fb1e9cee287c9ae8c065ff517c508eb5f9d7dd..05b7549a0f980efa33265a091a5174a78851ce05:/lunaix-os/includes/lunaix/spike.h?ds=sidebyside diff --git a/lunaix-os/includes/lunaix/spike.h b/lunaix-os/includes/lunaix/spike.h index e39c611..9cf4b7f 100644 --- a/lunaix-os/includes/lunaix/spike.h +++ b/lunaix-os/includes/lunaix/spike.h @@ -31,10 +31,15 @@ inline static void spin() { } void __assert_fail(const char* expr, const char* file, unsigned int line) __attribute__((noinline, noreturn)); #else -#define assert(cond) //assert nothing -#define assert_msg(cond, msg) //assert nothing +#define assert(cond) (void)(cond); //assert nothing +#define assert_msg(cond, msg) (void)(cond); //assert nothing #endif +void panick(const char* msg); + + +#define wait_until(cond) while(!(cond)); +#define loop_until(cond) while(!(cond)); #endif /* __LUNAIX_SPIKE_H */