-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
It would be great to have a platform-independent way for assertions (e.g. bkpt 255 on ARM, assert(), etc.).
- Create
Source/platform.h - Add macro
D_SP_ASSERTFALSEthat triggers an assertion. The JUCE macrojassertfalsecould serve as a template and could be extended forbkpt 255when compiling for embedded targets. - Add macro
D_SP_ASSERT(bool condition)that triggersD_SP_ASSERTFALSEif!condition - Replace all existing assertions with these macros
The same file could also be very useful in libDaisy.
Metadata
Metadata
Assignees
Labels
No labels