Explorar el Código

fix(assert): assert_likely is undefined in Release

greatbridf hace 2 años
padre
commit
3a9e9ef206
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      include/types/assert.h

+ 2 - 1
include/types/assert.h

@@ -35,6 +35,7 @@ void _debugger_breakpoint(void);
 
 #else
 
-#define assert(_statement) ;
+#define assert(_statement) (void)(_statement)
+#define assert_likely(_statement) (void)(_statement)
 
 #endif