6 ms·
The nice thing about assert() is you can just define your own: https://github.com/fiberfs/fiberfs/blob/7e79eaabbb180b0f1a7942b318e981293318a6da/src/core/fs/fbr
by nyc_pizzadev 6mo ago
The nice thing about assert() is you can just define your own:
https://github.com/fiberfs/fiberfs/blob/7e79eaabbb180b0f1a7942b318e981293318a6da/src/core/fs/fbr_directory.c#L190 https://github.com/fiberfs/fiberfs/blob/7e79eaabbb180b0f1a79...
In this case, the ability to see the actual values that triggered the assert is way more helpful.
- BoingBoomTschak 6mo agoYeah, but the macro system being so pitiful makes me long for one that allows something as magical as fiveam's is (https://github.com/lispci/fiveam/blob/e43d6c8e7da5a80d5c33e8ca018fb1619c5b0293/src/check.lisp#L113 https://github.com/lispci/fiveam/blob/e43d6c8e7da5a80d5c33e8...) instead of having to write special cases for unary and binary predicates.