Explorar o código

fix(assert): assert_likely is undefined in Release

greatbridf %!s(int64=2) %!d(string=hai) anos
pai
achega
3a9e9ef206
Modificáronse 1 ficheiros con 2 adicións e 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