mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
138e6cb433
Avoid using <assert.h> because the standard assert() pulls in fprintf and its of dependencies, as well as including __FILE__:__LINE__ strings for each assert() call. All this has an unacceptable memory cost, as well as being useless since there is nothing to printf *to*. Currently assert_basic() was added to check calloc() return values; in case of failure we simply halt the core with BKPT(0). This could be improved and refined.