diff --git a/core/include/sys/assert.h b/core/include/sys/assert.h index a391217..bbb50d5 100644 --- a/core/include/sys/assert.h +++ b/core/include/sys/assert.h @@ -25,9 +25,8 @@ int32_t _assert_current_error(void); #define noassert(f) _noassert( (f), getPC() ) #else - #define assert2(f,p) (f) - #define assert(f) (f) + #define assert(f) { int r = (f); if (r<0) { return r; }; } #define noassert(f) (f) #define _assert_read() (0)