Introducing LunaBuild to the build flow (#36)
[lunaix-os.git] / lunaix-os / includes / lunaix / spike.h
index cf40bab54d4c0079c06b7a8434ad2cdda496a626..e35cfdc52742b0a589d3b32a74949164bfdd7693 100644 (file)
@@ -66,7 +66,7 @@
                                                       : 0)                      \
                              : (31 - clz(x)))
 
-#ifndef __LUNAIXOS_NASSERT__
+#ifndef CONFIG_NO_ASSERT
 #define assert(cond)                                                           \
     do {                                                                       \
         if (unlikely(!(cond))) {                                                         \
@@ -96,7 +96,7 @@ __assert_fail(const char* expr, const char* file, unsigned int line)
 #define assert(cond) (void)(cond);          // assert nothing
 #define assert_msg(cond, msg) (void)(cond); // assert nothing
 
-#endif // __LUNAIXOS_NASSERT__
+#endif // CONFIG_NO_ASSERT
 
 void noret
 panick(const char* msg);